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

mark.dickinson python-checkins at python.org
Fri May 23 05:30:02 CEST 2008


Author: mark.dickinson
Date: Fri May 23 05:30:01 2008
New Revision: 63544

Log:
Better error reporting in test_math.py


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	Fri May 23 05:30:01 2008
@@ -902,6 +902,10 @@
                 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():


More information about the Python-checkins mailing list