mirror of https://github.com/python/cpython
Re-enable the OverflowError test for test_truediv on test_complex (GH-16591)
This commit is contained in:
parent
b6e0fc7426
commit
1dbe537385
|
@ -100,8 +100,7 @@ class ComplexTest(unittest.TestCase):
|
||||||
complex(random(), random()))
|
complex(random(), random()))
|
||||||
|
|
||||||
self.assertRaises(ZeroDivisionError, complex.__truediv__, 1+1j, 0+0j)
|
self.assertRaises(ZeroDivisionError, complex.__truediv__, 1+1j, 0+0j)
|
||||||
# FIXME: The following currently crashes on Alpha
|
self.assertRaises(OverflowError, pow, 1e200+1j, 1e200+1j)
|
||||||
# self.assertRaises(OverflowError, pow, 1e200+1j, 1e200+1j)
|
|
||||||
|
|
||||||
self.assertAlmostEqual(complex.__truediv__(2+0j, 1+1j), 1-1j)
|
self.assertAlmostEqual(complex.__truediv__(2+0j, 1+1j), 1-1j)
|
||||||
self.assertRaises(ZeroDivisionError, complex.__truediv__, 1+1j, 0+0j)
|
self.assertRaises(ZeroDivisionError, complex.__truediv__, 1+1j, 0+0j)
|
||||||
|
|
Loading…
Reference in New Issue