mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-31130: IDLE -- stop leaks in test_configdialog. (#3016)
Initial patch by Victor Stinner.
This commit is contained in:
parent
89225871d3
commit
733d0f63c5
3 changed files with 51 additions and 39 deletions
|
@ -1856,6 +1856,7 @@ class VarTrace:
|
|||
|
||||
def clear(self):
|
||||
"Clear lists (for tests)."
|
||||
# Call after all tests in a module to avoid memory leaks.
|
||||
self.untraced.clear()
|
||||
self.traced.clear()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue