]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-1596321: Fix threading._shutdown() for the main thread (GH-28549)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 27 Sep 2021 21:39:35 +0000 (14:39 -0700)
committerGitHub <noreply@github.com>
Mon, 27 Sep 2021 21:39:35 +0000 (14:39 -0700)
commit38c67738c64304928c68d5c2bd78bbb01d979b94
tree0a1357604728fce7834e35e1fa0a495db87d59b9
parentc7fdd6879b5c8447ee65b1bec95a1db43837a7a5
bpo-1596321: Fix threading._shutdown() for the main thread (GH-28549)

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)

Co-authored-by: Victor Stinner <vstinner@python.org>
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]