bpo-31130: IDLE -- stop leaks in test_configdialog. (#3016)

Initial patch by Victor Stinner.
This commit is contained in:
Terry Jan Reedy 2017-08-07 14:22:44 -04:00 committed by GitHub
parent 89225871d3
commit 733d0f63c5
3 changed files with 51 additions and 39 deletions

View file

@ -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()