[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module
STINNER Victor
report at bugs.python.org
Tue Jun 2 17:12:06 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
The following test is enough to reproduce the leak:
---
import unittest
import _xxsubinterpreters as _interpreters
class TestInterpreterDestroy(unittest.TestCase):
def tearDown(self):
for interp_id in _interpreters.list_all():
if interp_id == 0: # main
continue
_interpreters.destroy(interp_id)
def test_from_current(self):
interp_id = _interpreters.create(isolated=True)
_interpreters.run_string(interp_id, "import select")
---
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32604>
_______________________________________
More information about the Python-bugs-list
mailing list