cpython/Lib/test/support
Miss Islington (bot) 89264a31ea
[3.11] gh-111644: Fix support threading_cleanup() (GH-111714) (#111717)
gh-111644: Fix support threading_cleanup() (GH-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.
(cherry picked from commit f62c7ccf9a)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-11-04 00:43:53 +00:00
..
__init__.py [3.11] [3.12] gh-111165: Move test running code from test.support to libregrtest (GH-111166) (GH-111316) (GH-111318) 2023-10-25 12:37:19 +00:00
bytecode_helper.py bpo-42199: Fix bytecode_helper assertNotInBytecode (#23031) 2020-12-17 16:30:29 -08:00
hashlib_helper.py bpo-45042: Now test classes decorated with requires_hashdigest are not skipped (GH-28060) 2021-09-04 23:42:36 +03:00
import_helper.py [3.11] gh-109625: Move _ready_to_import() from test_import to support.import_helper (GH-109626) (#109718) 2023-09-22 12:34:46 +02:00
interpreters.py bpo-32604: Clean up test.support.interpreters. (gh-20926) 2020-06-16 18:24:40 -06:00
logging_helper.py bpo-40275: Avoid importing logging in test.support (GH-19601) 2020-04-25 11:35:18 +03:00
os_helper.py gh-110756: Sync regrtest with main branch (#110758) (#110781) 2023-10-12 21:45:36 +00:00
script_helper.py bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615) 2022-01-25 08:09:06 +01:00
socket_helper.py [3.11] gh-109015: Add test.support.socket_helper.tcp_blackhole() (#109016) (#109042) 2023-09-07 00:34:16 +00:00
threading_helper.py [3.11] gh-111644: Fix support threading_cleanup() (GH-111714) (#111717) 2023-11-04 00:43:53 +00:00
warnings_helper.py gh-103109: Document ignore_warnings() test support helper (GH-103110) 2023-04-02 15:42:43 -07:00