diff options
author | Georg Brandl <georg@python.org> | 2008-05-14 07:18:22 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-14 07:18:22 (GMT) |
commit | 885982283e1fb898cfaa59992dc877b0a20088e5 (patch) | |
tree | 10bfb668d0c791564e50dd76025abad10223b517 /Lib/test/test_warnings.py | |
parent | 40388cc3308e405dfb0f971eb144c7741c89868b (diff) | |
download | cpython-885982283e1fb898cfaa59992dc877b0a20088e5.zip cpython-885982283e1fb898cfaa59992dc877b0a20088e5.tar.gz cpython-885982283e1fb898cfaa59992dc877b0a20088e5.tar.bz2 |
Fix another "refleak" by clearing the filters after test.
Diffstat (limited to 'Lib/test/test_warnings.py')
-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 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. |