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 vstinner
Date 2020-03-24.00:23:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585009417.79.0.143098659034.issue40050@roundup.psfhosted.org>
In-reply-to
Content
I can reproduce the leak with the following test, stored as Lib/test/test_leak.py:
---
from test import support
import unittest

class Tests(unittest.TestCase):
    def test_import_fresh(self):
        support.import_fresh_module('importlib.machinery',
            fresh=('importlib',),
            blocked=('_frozen_importlib', '_frozen_importlib_external'))
---

Extract of "./python -m test -R 3:3 test_leak" output:
---
test_leak leaked [6303, 6299, 6303] references, sum=18905
test_leak leaked [2022, 2020, 2022] memory blocks, sum=6064
---
History
Date User Action Args
2020-03-24 00:23:37vstinnersetrecipients: + vstinner
2020-03-24 00:23:37vstinnersetmessageid: <1585009417.79.0.143098659034.issue40050@roundup.psfhosted.org>
2020-03-24 00:23:37vstinnerlinkissue40050 messages
2020-03-24 00:23:37vstinnercreate