projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acc21d8
)
Turn OverflowWarning into an error locally, in order to make the
author
Guido van Rossum
<guido@python.org>
Thu, 23 Aug 2001 03:23:03 +0000
(
03:23
+0000)
committer
Guido van Rossum
<guido@python.org>
Thu, 23 Aug 2001 03:23:03 +0000
(
03:23
+0000)
OverflowError test succeed.
Lib/test/test_exceptions.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_exceptions.py
b/Lib/test/test_exceptions.py
index dea88fee8b35cf0340e0fc740e5f7769d6beaf65..104258a549dfe7b6bba381b7f377b39633c69b8b 100644
(file)
--- 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!