summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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!