mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fix another "refleak" by clearing the filters after test.
This commit is contained in:
parent
40388cc330
commit
885982283e
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue