summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-23 03:23:03 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-23 03:23:03 (GMT)
commit83b120d690d45ddbdfeb8fdd5359a1272fc3a5f3 (patch)
tree6db56dfa6b029af6d50ee1a8363904050724200a /Lib/test
parentacc21d8814cf9f43c12052419cbb25e6570c6b32 (diff)
downloadcpython-83b120d690d45ddbdfeb8fdd5359a1272fc3a5f3.zip
cpython-83b120d690d45ddbdfeb8fdd5359a1272fc3a5f3.tar.gz
cpython-83b120d690d45ddbdfeb8fdd5359a1272fc3a5f3.tar.bz2
Turn OverflowWarning into an error locally, in order to make the
OverflowError test succeed.
Diffstat (limited to 'Lib/test')
-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 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!