Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
b27cca66
Kaydet (Commit)
b27cca66
authored
Agu 05, 2003
tarafından
Walter Dörwald
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Check both __div__ and __truediv__ in division tests.
(From SF patch #543867)
üst
beb35f4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
test_complex.py
Lib/test/test_complex.py
+9
-1
No files found.
Lib/test/test_complex.py
Dosyayı görüntüle @
b27cca66
import
unittest
,
os
import
unittest
,
os
,
math
from
test
import
test_support
from
test
import
test_support
import
warnings
import
warnings
...
@@ -55,9 +55,17 @@ class ComplexTest(unittest.TestCase):
...
@@ -55,9 +55,17 @@ class ComplexTest(unittest.TestCase):
if
x
!=
0
:
if
x
!=
0
:
q
=
z
/
x
q
=
z
/
x
self
.
assertClose
(
q
,
y
)
self
.
assertClose
(
q
,
y
)
q
=
z
.
__div__
(
x
)
self
.
assertClose
(
q
,
y
)
q
=
z
.
__truediv__
(
x
)
self
.
assertClose
(
q
,
y
)
if
y
!=
0
:
if
y
!=
0
:
q
=
z
/
y
q
=
z
/
y
self
.
assertClose
(
q
,
x
)
self
.
assertClose
(
q
,
x
)
q
=
z
.
__div__
(
y
)
self
.
assertClose
(
q
,
x
)
q
=
z
.
__truediv__
(
y
)
self
.
assertClose
(
q
,
x
)
def
test_div
(
self
):
def
test_div
(
self
):
simple_real
=
[
float
(
i
)
for
i
in
xrange
(
-
5
,
6
)]
simple_real
=
[
float
(
i
)
for
i
in
xrange
(
-
5
,
6
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment