mirror of
https://github.com/python/cpython.git
synced 2025-10-05 06:31:48 +00:00
[3.6] bpo-31130: IDLE -- stop leaks in test_configdialog. (GH-3016) (#3018)
Initial patch by Victor Stinner.
(cherry picked from commit 733d0f6
)
This commit is contained in:
parent
b61de2d465
commit
9d7d928b58
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