[issue12167] test_packaging reference leak

Andreas Stührk report at bugs.python.org
Thu Jul 7 14:36:08 CEST 2011


Andreas Stührk <andy-python at hammerhartes.de> added the comment:

Attached is a patch that replaces `lib2to3.fixer_Base.BaseFix.set_filename()` during tests. With the patch applied, I don't get any refleaks for packaging.

Another approach would be to simply remove the logging attribute of lib2to3 fixers, as it isn't used anyway.

----------
keywords: +patch
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file22604/issue12167_patch_2to3.patch

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


More information about the Python-bugs-list mailing list