Don't filter out OverflowWarning; should be a test failure if it is raised by

the interpreter in 2.5 .
This commit is contained in:
Brett Cannon 2006-02-27 20:03:56 +00:00
parent 59977a677c
commit be66e943c2

View File

@ -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: