This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Stop test_idle memory leaks
Type: behavior Stage: resolved
Components: Versions: Python 3.6, Python 3.5, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: python-dev, terry.reedy
Priority: normal Keywords:

Created on 2016-05-17 01:18 by terry.reedy, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg265743 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2016-05-17 01:18
test_idle leaked [2648, 2648, 2648] references, sum=7944
test_idle leaked [938, 940, 940] memory blocks, sum=2818

I traced this to test_configdialog and then to ConfigDialog.AttachVarCallbacks, which has 18 call like
        self.fontSize.trace_variable('w', self.VarChanged_font)
Currently, root.destroy does not destroy associated callbacks.  Serhiy has a patch to change this, but will do explicit cleanup for the test anyway.
msg265747 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-05-17 02:28
New changeset 9e1c859562bb by Terry Jan Reedy in branch '2.7':
Backports: #25747: remove bad test.  #27044: stop test_idle from leaking.
https://hg.python.org/cpython/rev/9e1c859562bb

New changeset 6a33d8d5d208 by Terry Jan Reedy in branch '3.5':
Issue #27044: stop test_idle from leaking by deleting callbacks.
https://hg.python.org/cpython/rev/6a33d8d5d208
History
Date User Action Args
2022-04-11 14:58:31adminsetgithub: 71231
2016-05-17 02:29:20terry.reedysetstatus: open -> closed
resolution: fixed
stage: needs patch -> resolved
2016-05-17 02:28:23python-devsetnosy: + python-dev
messages: + msg265747
2016-05-17 01:18:48terry.reedycreate