summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-05-23 03:30:01 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-05-23 03:30:01 (GMT)
commitd05583525397a3e86885436f0e71d6995c608e43 (patch)
tree65bf547f719e4652a32893b078ddef97ad63fa80 /Lib/test
parentc11c3391b0fd3bb0c92526f0aa0c8232963416be (diff)
downloadcpython-d05583525397a3e86885436f0e71d6995c608e43.zip
cpython-d05583525397a3e86885436f0e71d6995c608e43.tar.gz
cpython-d05583525397a3e86885436f0e71d6995c608e43.tar.bz2
Better error reporting in test_math.py
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_math.py4
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():