From 885982283e1fb898cfaa59992dc877b0a20088e5 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 14 May 2008 07:18:22 +0000 Subject: Fix another "refleak" by clearing the filters after test. --- Lib/test/test_warnings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_warnings.py b/Lib/test/test_warnings.py index 70d8c56..fdb003f 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. -- cgit v0.12