diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-08-25 02:14:08 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-08-25 02:14:08 (GMT) |
commit | c8854434790d3a281f0ea5a4714e5c01414413b0 (patch) | |
tree | f6edfa8738087c52d1fb4e077bba738f2f42cd49 /Lib/test/test_warnings.py | |
parent | 1fa040ba73db700debd9f5079fa2083a0937f8b6 (diff) | |
download | cpython-c8854434790d3a281f0ea5a4714e5c01414413b0.zip cpython-c8854434790d3a281f0ea5a4714e5c01414413b0.tar.gz cpython-c8854434790d3a281f0ea5a4714e5c01414413b0.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_warnings.py')
-rw-r--r-- | Lib/test/test_warnings.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_warnings.py b/Lib/test/test_warnings.py index 4bfae32..c861a2e 100644 --- a/Lib/test/test_warnings.py +++ b/Lib/test/test_warnings.py @@ -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]: |