mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Stop producing or using OverflowWarning. PEP 237 thought this would
happen in 2.3, but nobody noticed it still was getting generated (the warning was disabled by default). OverflowWarning and PyExc_OverflowWarning should be removed for 2.5, and left notes all over saying so.
This commit is contained in:
parent
1fa040ba73
commit
c885443479
8 changed files with 25 additions and 45 deletions
|
@ -44,6 +44,7 @@ class TestModule(unittest.TestCase):
|
|||
|
||||
def test_warn_specific_category(self):
|
||||
text = 'None'
|
||||
# XXX OverflowWarning should go away for Python 2.5.
|
||||
for category in [DeprecationWarning, FutureWarning, OverflowWarning,
|
||||
PendingDeprecationWarning, RuntimeWarning,
|
||||
SyntaxWarning, UserWarning, Warning]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue