[Python-checkins] Re-enable the OverflowError test for test_truediv on test_complex (GH-16591)

Serhiy Storchaka webhook-mailer at python.org
Thu Oct 10 12:23:48 EDT 2019


https://github.com/python/cpython/commit/1dbe5373851acb85ba91f0be7b83c69563acd68d
commit: 1dbe5373851acb85ba91f0be7b83c69563acd68d
branch: master
author: Dong-hee Na <donghee.na92 at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2019年10月10日T19:23:36+03:00
summary:
Re-enable the OverflowError test for test_truediv on test_complex (GH-16591)
files:
M Lib/test/test_complex.py
diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py
index fe1e566562de4..dee5c7fa308bd 100644
--- a/Lib/test/test_complex.py
+++ b/Lib/test/test_complex.py
@@ -100,8 +100,7 @@ def test_truediv(self):
 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)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /