]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-1596321: Fix threading._shutdown() for the main thread (GH-28549) (GH-28589)
authorVictor Stinner <vstinner@python.org>
Mon, 27 Sep 2021 21:40:22 +0000 (23:40 +0200)
committerGitHub <noreply@github.com>
Mon, 27 Sep 2021 21:40:22 +0000 (23:40 +0200)
commit94d19f606fa18a1c4d2faca1caf2f470a8ce6d46
tree490c044650b348b816c8f00d51b51b12531dcc24
parent1ecb641b887af2feb026a266e2fceedee0815ca8
bpo-1596321: Fix threading._shutdown() for the main thread (GH-28549) (GH-28589)

Fix the threading._shutdown() function when the threading module was
imported first from a thread different than the main thread: no
longer log an error at Python exit.

(cherry picked from commit 95d31370829b7d729667588e0a9943217401ea5b)
Lib/test/test_threading.py
Lib/threading.py
Misc/NEWS.d/next/Library/2021-09-24-17-20-23.bpo-1596321.3nhPUk.rst [new file with mode: 0644]