[issue3660] reference leaks in test_distutils

Amaury Forgeot d'Arc report at bugs.python.org
Sat Sep 6 00:19:45 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

test_distutils will be difficult; the leak is around the "import xx" in
Lib/distutils/tests/test_build_ext.py.

And Python/import.c says:
/* To prevent initializing an extension module more than once, we keep a
static dictionary 'extensions' keyed [...] by filename (for dynamically
loaded modules). A copy of the module's dictionary is stored [...] 
*/

This dictionary keeps growing with random filenames in the temp
directory. I can't see a way to clean it.

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


More information about the Python-bugs-list mailing list