[issue22166] test_codecs leaks references

Nick Coghlan report at bugs.python.org
Sat Sep 6 21:14:09 CEST 2014


Nick Coghlan added the comment:

This investigation also showed why the original tests that used a
non-unique name didn't work: the codec was getting cached the first time
through and hence not seeing the different codecs registered by other tests.

MAL, my plan was to provide an API to forget a specific named codec rather
than flush the whole cache. I agree a private C API would also be a good
idea, though.

----------

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


More information about the Python-bugs-list mailing list