Message364911
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
--- |
|
Date |
User |
Action |
Args |
2020-03-24 00:23:37 | vstinner | set | recipients:
+ vstinner |
2020-03-24 00:23:37 | vstinner | set | messageid: <1585009417.79.0.143098659034.issue40050@roundup.psfhosted.org> |
2020-03-24 00:23:37 | vstinner | link | issue40050 messages |
2020-03-24 00:23:37 | vstinner | create | |
|