Fix another "refleak" by clearing the filters after test.
This commit is contained in:
parent
40388cc330
commit
885982283e
|
@ -396,6 +396,7 @@ class _WarningsTests(BaseTest):
|
||||||
self.assertRaises(TypeError, self.module.warn, "Warning!")
|
self.assertRaises(TypeError, self.module.warn, "Warning!")
|
||||||
finally:
|
finally:
|
||||||
self.module.showwarning = old_showwarning
|
self.module.showwarning = old_showwarning
|
||||||
|
self.module.resetwarnings()
|
||||||
|
|
||||||
def test_show_warning_output(self):
|
def test_show_warning_output(self):
|
||||||
# With showarning() missing, make sure that output is okay.
|
# With showarning() missing, make sure that output is okay.
|
||||||
|
|
Loading…
Reference in New Issue