@@ -82,6 +82,8 @@ def check_div(self, x, y):
8282 q = z .__truediv__ (y )
8383 self .assertClose (q , x )
8484
85+ # TODO: RUSTPYTHON
86+ @unittest .expectedFailure
8587 def test_truediv (self ):
8688 simple_real = [float (i ) for i in range (- 5 , 6 )]
8789 simple_complex = [complex (x , y ) for x in simple_real for y in simple_real ]
@@ -140,6 +142,8 @@ def test_richcompare(self):
140142 self .assertIs (operator .ne (1 + 1j , 1 + 1j ), False )
141143 self .assertIs (operator .ne (1 + 1j , 2 + 2j ), True )
142144
145+ # TODO: RUSTPYTHON
146+ @unittest .expectedFailure
143147 def test_richcompare_boundaries (self ):
144148 def check (n , deltas , is_equal , imag = 0.0 ):
145149 for delta in deltas :
@@ -167,6 +171,8 @@ def test_divmod(self):
167171 self .assertRaises (TypeError , divmod , 1 + 1j , 1 + 0j )
168172 self .assertRaises (TypeError , divmod , 1 + 1j , 0 + 0j )
169173
174+ # TODO: RUSTPYTHON
175+ @unittest .expectedFailure
170176 def test_pow (self ):
171177 self .assertAlmostEqual (pow (1 + 1j , 0 + 0j ), 1.0 )
172178 self .assertAlmostEqual (pow (0 + 0j , 2 + 0j ), 0.0 )
@@ -214,6 +220,8 @@ def test_boolcontext(self):
214220 def test_conjugate (self ):
215221 self .assertClose (complex (5.3 , 9.8 ).conjugate (), 5.3 - 9.8j )
216222
223+ # TODO: RUSTPYTHON
224+ @unittest .expectedFailure
217225 def test_constructor (self ):
218226 class OS :
219227 def __init__ (self , value ): self .value = value
@@ -431,6 +439,8 @@ class complex2(complex):
431439 self .assertFloatsAreIdentical (z .real , x )
432440 self .assertFloatsAreIdentical (z .imag , y )
433441
442+ # TODO: RUSTPYTHON
443+ @unittest .expectedFailure
434444 def test_underscores (self ):
435445 # check underscores
436446 for lit in VALID_UNDERSCORE_LITERALS :
@@ -449,11 +459,15 @@ def test_hash(self):
449459 x /= 3.0 # now check against floating point
450460 self .assertEqual (hash (x ), hash (complex (x , 0. )))
451461
462+ # TODO: RUSTPYTHON
463+ @unittest .expectedFailure
452464 def test_abs (self ):
453465 nums = [complex (x / 3. , y / 7. ) for x in range (- 9 ,9 ) for y in range (- 9 ,9 )]
454466 for num in nums :
455467 self .assertAlmostEqual ((num .real ** 2 + num .imag ** 2 ) ** 0.5 , abs (num ))
456468
469+ # TODO: RUSTPYTHON
470+ @unittest .expectedFailure
457471 def test_repr_str (self ):
458472 def test (v , expected , test_fn = self .assertEqual ):
459473 test_fn (repr (v ), expected )
@@ -581,6 +595,8 @@ def test_repr_roundtrip(self):
581595 self .assertFloatsAreIdentical (0.0 + z .imag ,
582596 0.0 + roundtrip .imag )
583597
598+ # TODO: RUSTPYTHON
599+ @unittest .expectedFailure
584600 def test_format (self ):
585601 # empty format string is same as str()
586602 self .assertEqual (format (1 + 3j , '' ), str (1 + 3j ))
0 commit comments