]> granicus.if.org Git - python/commitdiff
Fix another "refleak" by clearing the filters after test.
authorGeorg Brandl <georg@python.org>
Wed, 14 May 2008 07:18:22 +0000 (07:18 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 14 May 2008 07:18:22 +0000 (07:18 +0000)
Lib/test/test_warnings.py

index 70d8c561501b1375f9fe98c61bf96cca096398ee..fdb003fe2b761d451fec2374237a33556bbb7a99 100644 (file)
@@ -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.