[issue42866] test test_multibytecodec: Test_IncrementalEncoder.test_subinterp() leaks references

STINNER Victor report at bugs.python.org
Fri Jan 8 09:49:29 EST 2021


STINNER Victor <vstinner at python.org> added the comment:

Ok, it's now fixed.

To make sure that a heap type can be deleted, it must by a GC type, has a traverse function, and it must track its instances. We should take this in account when we convert static types to heap types. In practice, deleting a type is mostly an issue when we check for reference leak and an instance is kept alive until the last GC collection, at the end of Py_EndInterpreter().

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42866>
_______________________________________


More information about the Python-bugs-list mailing list