]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111644: Fix support threading_cleanup() (#111714)
authorVictor Stinner <vstinner@python.org>
Sat, 4 Nov 2023 00:18:42 +0000 (01:18 +0100)
committerGitHub <noreply@github.com>
Sat, 4 Nov 2023 00:18:42 +0000 (00:18 +0000)
commitf62c7ccf9abf6e0493978da9cf9ca43adcd403f9
treeba95e9e3a16c85164e9072054d59d3ce341ddfdc
parent244e37b22a826eeb37bc057193bbff7138bc6ac3
gh-111644: Fix support threading_cleanup() (#111714)

Copy the list of dangling threads to make sure that the list of
"Dangling thread" is complete. Previously, the list was incomplete if
threads completed just before the list was displayed.

Changes:

* Rewrite the warning to make it easier to understand.
* Use support.sleeping_retry().
* threading_cleanup() no longer copies threading._dangling,
  but only counts the number of dangling thread.
* Remove support.gc_support() call.
Lib/test/support/threading_helper.py