[issue3660] reference leaks in test_distutils

2010-01-06 Thread Ezio Melotti
Ezio Melotti added the comment: This issue has been fixed. -- nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue3660] reference leaks in test_distutils

2008-09-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: With the new module structure in 3.0, it should be possible to add a cleanup function. It would be a good exercise; I don't know of any module defining such a function. ___ Python tracker <[EMAIL PROT

[issue3660] reference leaks in test_distutils

2008-09-05 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: > It's not only the name, but a copy of the whole module dict just after > import (that's why reload(sys) takes you back the > sys.setdefaultencoding() function). Ow. > Actually I found a (hackish) way to clean the 'extension' dict, but this

[issue3660] reference leaks in test_distutils

2008-09-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: It's not only the name, but a copy of the whole module dict just after import (that's why reload(sys) takes you back the sys.setdefaultencoding() function). Actually I found a (hackish) way to clean the 'extension' dict, but this is not

[issue3660] reference leaks in test_distutils

2008-09-05 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> 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 'e

[issue3660] reference leaks in test_distutils

2008-09-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> 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 'extensi

[issue3660] reference leaks in test_distutils

2008-09-05 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: test_distutils is also leaking the the trunk: test_distutils leaked [144, 144, 144, 144] references, sum=576 -- nosy: +benjamin.peterson title: reference leaks in 3.0 -> reference leaks in test_distutils versions: +Python 2.6 ___