[issue12167] test_packaging reference leak

Éric Araujo report at bugs.python.org
Fri Jul 15 17:55:00 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

It looks like we don’t have refleaks anymore!  I still have one question.

Victor reported some time ago that packaging.util._path_created was a cache that was never cleared; I fixed that in 27a70dfc38cc, but recently I’ve found that regrtest itself clears the similar distutils.util._path_created; I wonder which approach is better: one global cleaning in regrtest or piecemeal cleanup in each leaking test case?

I’ve also made a patch to register the caches used by packaging.database with the regrtest unclean environment warning; can someone review it?

----------
Added file: http://bugs.python.org/file22665/packaging-caches.diff

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


More information about the Python-bugs-list mailing list