[issue30642] Fix leaks in idlelib

Terry J. Reedy report at bugs.python.org
Tue Jun 13 10:44:54 EDT 2017


Terry J. Reedy added the comment:

The macosx leak came from repeated calls to
    root.createcommand("::tk::mac::OpenDocument", doOpenFile)
in macosx.addOpenEventSupport(root, flist), which is called from macosx.setupApp, which is called in test_macosx.SetupTest.test_setupapp.

Attached is an improved version of findleak.py, which made it easy to isolate one test file by renaming, repeatedly determine whether the leak remained after modifying either macosx.py or test_macosx.py, and revert all the other names when done.

----------
Added file: http://bugs.python.org/file46948/findleak.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30642>
_______________________________________


More information about the Python-bugs-list mailing list