diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-05-23 03:30:01 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-05-23 03:30:01 (GMT) |
commit | d05583525397a3e86885436f0e71d6995c608e43 (patch) | |
tree | 65bf547f719e4652a32893b078ddef97ad63fa80 | |
parent | c11c3391b0fd3bb0c92526f0aa0c8232963416be (diff) | |
download | cpython-d05583525397a3e86885436f0e71d6995c608e43.zip cpython-d05583525397a3e86885436f0e71d6995c608e43.tar.gz cpython-d05583525397a3e86885436f0e71d6995c608e43.tar.bz2 |
Better error reporting in test_math.py
-rw-r--r-- | Lib/test/test_math.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index e727d9d..cc30081 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(): |