[issue40071] test__xxsubinterpreters leaked [1, 1, 1] references: test_ids_global()

STINNER Victor report at bugs.python.org
Wed Mar 25 21:36:23 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

The folowing test is enough to reproduce the leak:

    def test_ids_global(self):
        interp1 = interpreters.create()
        script, rpipe = _captured_script("pass")
        interpreters.run_string(interp1, script)
        rpipe.close()

        interp2 = interpreters.create()
        script, rpipe = _captured_script("pass")
        interpreters.run_string(interp2, script)
        rpipe.close()

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40071>
_______________________________________


More information about the Python-bugs-list mailing list