[Python-checkins] CVS: python/dist/src/Lib/test test_exceptions.py,1.13,1.14
Guido van Rossum
gvanrossum@users.sourceforge.net
2001年8月22日 20:23:05 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv22603
Modified Files:
test_exceptions.py
Log Message:
Turn OverflowWarning into an error locally, in order to make the
OverflowError test succeed.
Index: test_exceptions.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_exceptions.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_exceptions.py 2001年08月13日 23:07:00 1.13
--- test_exceptions.py 2001年08月23日 03:23:03 1.14
***************
*** 3,6 ****
--- 3,9 ----
from test_support import *
from types import ClassType
+ import warnings
+
+ warnings.filterwarnings("error", "", OverflowWarning, __name__)
print '5. Built-in exceptions'