summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-23 03:23:03 +0000
committerGuido van Rossum <guido@python.org>2001-08-23 03:23:03 +0000
commit83b120d690d45ddbdfeb8fdd5359a1272fc3a5f3 (patch)
tree6db56dfa6b029af6d50ee1a8363904050724200a /Lib/test/test_exceptions.py
parentacc21d8814cf9f43c12052419cbb25e6570c6b32 (diff)
downloadcpython-git-83b120d690d45ddbdfeb8fdd5359a1272fc3a5f3.tar.gz
Turn OverflowWarning into an error locally, in order to make the
OverflowError test succeed.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py3
1 files changed, 3 insertions, 0 deletions
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!