From: Mark Dickinson Date: Sun, 20 Apr 2008 01:22:30 +0000 (+0000) Subject: Report additional diagnostic information in X-Git-Tag: v2.6a3~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f99d705138ddbea874ab41adc52becc7d9a02d5;p=thirdparty%2FPython%2Fcpython.git Report additional diagnostic information in test_math, to help track down debian-alpha buildbot failure. --- diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 0d35130e604d..4a54a6ed9ed3 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():