diff options
author | Georg Brandl <georg@python.org> | 2008-05-14 07:18:22 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-14 07:18:22 +0000 |
commit | 885982283e1fb898cfaa59992dc877b0a20088e5 (patch) | |
tree | 10bfb668d0c791564e50dd76025abad10223b517 | |
parent | 40388cc3308e405dfb0f971eb144c7741c89868b (diff) | |
download | cpython-git-885982283e1fb898cfaa59992dc877b0a20088e5.tar.gz |
Fix another "refleak" by clearing the filters after test.
-rw-r--r-- | Lib/test/test_warnings.py | 1 |
1 files changed, 1 insertions, 0 deletions
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. |