[Python-checkins] r63221 - python/trunk/Lib/test/test_warnings.py
georg.brandl
python-checkins at python.org
Wed May 14 09:18:23 CEST 2008
Author: georg.brandl
Date: Wed May 14 09:18:22 2008
New Revision: 63221
Log:
Fix another "refleak" by clearing the filters after test.
Modified:
python/trunk/Lib/test/test_warnings.py
Modified: python/trunk/Lib/test/test_warnings.py
==============================================================================
--- python/trunk/Lib/test/test_warnings.py (original)
+++ python/trunk/Lib/test/test_warnings.py Wed May 14 09:18:22 2008
@@ -396,6 +396,7 @@
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.
More information about the Python-checkins
mailing list