[issue42866] test test_multibytecodec: Test_IncrementalEncoder.test_subinterp() leaks references
STINNER Victor
report at bugs.python.org
Fri Jan 8 04:31:03 EST 2021
STINNER Victor <vstinner at python.org> added the comment:
I added the test which leaks in bpo-42846.
commit 07f2cee93f1b619650403981c455f47bfed8d818
Author: Victor Stinner <vstinner at python.org>
Date: Fri Jan 8 00:15:22 2021 +0100
bpo-42846: Convert CJK codec extensions to multiphase init (GH-24157)
Convert the 6 CJK codec extension modules (_codecs_cn, _codecs_hk,
_codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw) to the
multiphase initialization API (PEP 489).
Remove getmultibytecodec() local cache: always import
_multibytecodec. It should be uncommon to get a codec. For example,
this function is only called once per CJK codec module.
Fix a reference leak in register_maps() error path.
I don't think that the leak is new. It's just that it wasn't seen previously.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42866>
_______________________________________
More information about the Python-bugs-list
mailing list