Re-enable the OverflowError test for test_truediv on test_complex (GH-16591)

This commit is contained in:
Dong-hee Na 2019-10-11 01:23:36 +09:00 committed by Serhiy Storchaka
parent b6e0fc7426
commit 1dbe537385
1 changed files with 1 additions and 2 deletions

View File

@ -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)