[issue12167] test_packaging reference leak

Antoine Pitrou report at bugs.python.org
Thu Jul 7 19:57:43 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> See http://hg.python.org/cpython/file/tip/Lib/packaging/tests/support.py#l81

AFAIU, the problem is that 2to3 creates a whole new logger for each
different file. So it's not about cleaning the handlers, but cleaning up
the loggers as well. And logging (deliberately, according to Vinay)
doesn't provide any API to destroy loggers (they are de facto eternal).

----------

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


More information about the Python-bugs-list mailing list