summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_warnings.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-14 07:18:22 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-14 07:18:22 (GMT)
commit885982283e1fb898cfaa59992dc877b0a20088e5 (patch)
tree10bfb668d0c791564e50dd76025abad10223b517 /Lib/test/test_warnings.py
parent40388cc3308e405dfb0f971eb144c7741c89868b (diff)
downloadcpython-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.py1
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.