mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Turn OverflowWarning into an error locally, in order to make the
OverflowError test succeed.
This commit is contained in:
parent
acc21d8814
commit
83b120d690
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
from test_support import *
|
from test_support import *
|
||||||
from types import ClassType
|
from types import ClassType
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
warnings.filterwarnings("error", "", OverflowWarning, __name__)
|
||||||
|
|
||||||
print '5. Built-in exceptions'
|
print '5. Built-in exceptions'
|
||||||
# XXX This is not really enough, each *operation* should be tested!
|
# XXX This is not really enough, each *operation* should be tested!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue