This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients corona10, erlendaasland, vstinner
Date 2021-01-08.10:24:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610101456.16.0.91322175356.issue42866@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2021-01-08 10:24:16vstinnersetrecipients: + vstinner, corona10, erlendaasland
2021-01-08 10:24:16vstinnersetmessageid: <1610101456.16.0.91322175356.issue42866@roundup.psfhosted.org>
2021-01-08 10:24:16vstinnerlinkissue42866 messages
2021-01-08 10:24:16vstinnercreate