]> granicus.if.org Git - python/commitdiff
Turn OverflowWarning into an error locally, in order to make the
authorGuido van Rossum <guido@python.org>
Thu, 23 Aug 2001 03:23:03 +0000 (03:23 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 23 Aug 2001 03:23:03 +0000 (03:23 +0000)
OverflowError test succeed.

Lib/test/test_exceptions.py

index dea88fee8b35cf0340e0fc740e5f7769d6beaf65..104258a549dfe7b6bba381b7f377b39633c69b8b 100644 (file)
@@ -2,6 +2,9 @@
 
 from test_support import *
 from types import ClassType
+import warnings
+
+warnings.filterwarnings("error", "", OverflowWarning, __name__)
 
 print '5. Built-in exceptions'
 # XXX This is not really enough, each *operation* should be tested!