From: Guido van Rossum Date: Thu, 23 Aug 2001 03:23:03 +0000 (+0000) Subject: Turn OverflowWarning into an error locally, in order to make the X-Git-Tag: v2.2a3~375 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83b120d690d45ddbdfeb8fdd5359a1272fc3a5f3;p=python Turn OverflowWarning into an error locally, in order to make the OverflowError test succeed. --- diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index dea88fee8b..104258a549 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -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!