]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Re-enable the OverflowError test for test_truediv on test_complex (GH-16591)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 10 Oct 2019 17:11:07 +0000 (10:11 -0700)
committerGitHub <noreply@github.com>
Thu, 10 Oct 2019 17:11:07 +0000 (10:11 -0700)
(cherry picked from commit 1dbe5373851acb85ba91f0be7b83c69563acd68d)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Lib/test/test_complex.py

index fe1e566562de491459b0cab7cc4cf36f66bbbfba..dee5c7fa308bd2dec3e2f915bf80094ee6cbf2d5 100644 (file)
@@ -100,8 +100,7 @@ class ComplexTest(unittest.TestCase):
                            complex(random(), random()))
 
         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.assertRaises(ZeroDivisionError, complex.__truediv__, 1+1j, 0+0j)