From 83b120d690d45ddbdfeb8fdd5359a1272fc3a5f3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 23 Aug 2001 03:23:03 +0000 Subject: Turn OverflowWarning into an error locally, in order to make the OverflowError test succeed. --- Lib/test/test_exceptions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index dea88fe..104258a 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! -- cgit v0.12