From: Brett Cannon Date: Mon, 27 Feb 2006 20:03:56 +0000 (+0000) Subject: Don't filter out OverflowWarning; should be a test failure if it is raised by X-Git-Tag: v2.5a0~510 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be66e943c2efb9c83cd139ae036d721a6ce592b0;p=python Don't filter out OverflowWarning; should be a test failure if it is raised by the interpreter in 2.5 . --- diff --git a/Lib/test/test_warnings.py b/Lib/test/test_warnings.py index c861a2ebc8..b7061c1b5f 100644 --- a/Lib/test/test_warnings.py +++ b/Lib/test/test_warnings.py @@ -44,8 +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, + for category in [DeprecationWarning, FutureWarning, PendingDeprecationWarning, RuntimeWarning, SyntaxWarning, UserWarning, Warning]: if category.__name__ in self.ignored: