]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix deadlock on shutdown if test_current_{exception,frames} fails (#102019)
authorJacob Bower <1978924+jbower-fb@users.noreply.github.com>
Thu, 23 Feb 2023 22:57:06 +0000 (14:57 -0800)
committerGitHub <noreply@github.com>
Thu, 23 Feb 2023 22:57:06 +0000 (14:57 -0800)
commit0c857865e4f255f99d58678f878e09c11da89892
tree818c4341f962b56ccd1ac556557d87a5e6dcc7ae
parentccd98a3146d66343499d04a44e038223a1a09e80
Fix deadlock on shutdown if test_current_{exception,frames} fails (#102019)

* Don't deadlock on shutdown if test_current_{exception,frames} fails

These tests spawn a thread that waits on a threading.Event. If the test fails any of its assertions, the Event won't be signaled and the thread will wait indefinitely, causing a deadlock when threading._shutdown() tries to join all outstanding threads.

Co-authored-by: Brett Simmers <bsimmers@meta.com>
* Add a news entry

* Fix whitespace

---------

Co-authored-by: Brett Simmers <bsimmers@meta.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Lib/test/test_sys.py
Misc/NEWS.d/next/Tests/2023-02-18-10-51-02.gh-issue-102019.0797SJ.rst [new file with mode: 0644]