Turn OverflowWarning into an error locally, in order to make the

OverflowError test succeed.
This commit is contained in:
Guido van Rossum 2001-08-23 03:23:03 +00:00
parent acc21d8814
commit 83b120d690

View File

@ -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!