summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-04-20 01:22:30 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-04-20 01:22:30 (GMT)
commit9f99d705138ddbea874ab41adc52becc7d9a02d5 (patch)
tree050135d988d32e422d5abaafeba827ce627b0551 /Lib
parent47a84aa9781392bb073d1c97ee7b95e760990727 (diff)
downloadcpython-9f99d705138ddbea874ab41adc52becc7d9a02d5.zip
cpython-9f99d705138ddbea874ab41adc52becc7d9a02d5.tar.gz
cpython-9f99d705138ddbea874ab41adc52becc7d9a02d5.tar.bz2
Report additional diagnostic information in
test_math, to help track down debian-alpha buildbot failure.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_math.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index 0d35130..4a54a6e 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -672,7 +672,12 @@ class MathTests(unittest.TestCase):
# no real versions of rect, polar
continue
func = getattr(math, fn)
- result = func(ar)
+ try:
+ result = func(ar)
+ except ValueError:
+ message = ("Unexpected ValueError 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():