[Python-checkins] r62412 - python/trunk/Lib/test/test_math.py

mark.dickinson python-checkins at python.org
Sun Apr 20 03:22:30 CEST 2008


Author: mark.dickinson
Date: Sun Apr 20 03:22:30 2008
New Revision: 62412

Log:
Report additional diagnostic information in
test_math, to help track down debian-alpha
buildbot failure.



Modified:
   python/trunk/Lib/test/test_math.py

Modified: python/trunk/Lib/test/test_math.py
==============================================================================
--- python/trunk/Lib/test/test_math.py	(original)
+++ python/trunk/Lib/test/test_math.py	Sun Apr 20 03:22:30 2008
@@ -672,7 +672,12 @@
                 # 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():


More information about the Python-checkins mailing list