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!")
|
||||
finally:
|
||||
self.module.showwarning = old_showwarning
|
||||
self.module.resetwarnings()
|
||||
|
||||
def test_show_warning_output(self):
|
||||
# With showarning() missing, make sure that output is okay.
|
||||
|
|
Loading…
Reference in New Issue