]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128639: Don't assume one thread in subinterpreter finalization (gh-128640)
authorPeter Bierma <zintensitydev@gmail.com>
Mon, 19 May 2025 16:24:08 +0000 (12:24 -0400)
committerGitHub <noreply@github.com>
Mon, 19 May 2025 16:24:08 +0000 (10:24 -0600)
commit9859791f9e116c827468f307ac0770286c975c8b
tree512a5985bdd832bef29d6898a45dbd5e8b25abb5
parentc4ad92e1555404b54490d1e370788509120675ed
gh-128639: Don't assume one thread in subinterpreter finalization (gh-128640)

Incidentally, this also fixed the warning not showing up if a subinterpreter wasn't
cleaned up via _interpreters.destroy. I had to update some of the tests as a result.
Lib/test/test_interpreters/test_api.py
Lib/test/test_interpreters/test_lifecycle.py
Lib/test/test_threading.py
Misc/NEWS.d/next/Core_and_Builtins/2025-01-08-12-52-47.gh-issue-128640.9nbh9z.rst [new file with mode: 0644]
Programs/_testembed.c
Python/pylifecycle.c