STINNER Victor <vstin...@python.org> added the comment:
The leak can be simplified to: @support.cpython_only def test_subinterp(self): import _testcapi code = textwrap.dedent(""" import encodings import _codecs_jp encodings._cache['cp932'] = _codecs_jp.getcodec('cp932') """) res = _testcapi.run_in_subinterp(code) self.assertEqual(res, 0) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42866> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com