STINNER Victor <[email protected]> added the comment:
> Lib/test/test_numeric_tower.py:184 in test_complex
The crash occurs at:
def test_complex(self):
# comparisons with complex are special: equality and inequality
# comparisons should always succeed, but order comparisons should
# raise TypeError.
z = 1.0 + 0j
w = -3.14 + 2.7j
for v in 1, 1.0, F(1), D(1), complex(1): # <~~ HERE
self.assertEqual(z, v)
self.assertEqual(v, z)
where F = fractions.Fraction and D = decimal.Decimal
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33627>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com