From: Mark Dickinson Date: Fri, 23 May 2008 03:30:01 +0000 (+0000) Subject: Better error reporting in test_math.py X-Git-Tag: v2.6b1~290 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d05583525397a3e86885436f0e71d6995c608e43;p=thirdparty%2FPython%2Fcpython.git Better error reporting in test_math.py --- diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index e727d9d0411c..cc30081dbf73 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -902,6 +902,10 @@ class MathTests(unittest.TestCase): message = ("Unexpected ValueError in " + "test %s:%s(%r)\n" % (id, fn, ar)) self.fail(message) + except OverflowError: + message = ("Unexpected OverflowError in " + + "test %s:%s(%r)\n" % (id, fn, ar)) + self.fail(message) self.ftest("%s:%s(%r)" % (id, fn, ar), result, er) def test_main():