mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
Turn OverflowWarning into an error locally, in order to make the
OverflowError test succeed.
This commit is contained in:
parent
acc21d8814
commit
83b120d690
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user