From: Georg Brandl Date: Wed, 14 May 2008 07:18:22 +0000 (+0000) Subject: Fix another "refleak" by clearing the filters after test. X-Git-Tag: v2.6b1~433 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=885982283e1fb898cfaa59992dc877b0a20088e5;p=python Fix another "refleak" by clearing the filters after test. --- diff --git a/Lib/test/test_warnings.py b/Lib/test/test_warnings.py index 70d8c56150..fdb003fe2b 100644 --- a/Lib/test/test_warnings.py +++ b/Lib/test/test_warnings.py @@ -396,6 +396,7 @@ class _WarningsTests(BaseTest): self.assertRaises(TypeError, self.module.warn, "Warning!") finally: self.module.showwarning = old_showwarning + self.module.resetwarnings() def test_show_warning_output(self): # With showarning() missing, make sure that output is okay.