Fix another "refleak" by clearing the filters after test.

This commit is contained in:
Georg Brandl 2008-05-14 07:18:22 +00:00
parent 40388cc330
commit 885982283e
1 changed files with 1 additions and 0 deletions

View File

@ -396,6 +396,7 @@ class _WarningsTests(BaseTest):
self.assertRaises(TypeError, self.module.warn, "Warning!") self.assertRaises(TypeError, self.module.warn, "Warning!")
finally: finally:
self.module.showwarning = old_showwarning self.module.showwarning = old_showwarning
self.module.resetwarnings()
def test_show_warning_output(self): def test_show_warning_output(self):
# With showarning() missing, make sure that output is okay. # With showarning() missing, make sure that output is okay.