summaryrefslogtreecommitdiffstats
path: root/Lib/test/support/threading_helper.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-111644: Fix support threading_cleanup() (GH-111714) (#111716)Miss Islington (bot)2023-11-041-25/+28
| | | | | | | | | | | | | | | | | | 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 f62c7ccf9abf6e0493978da9cf9ca43adcd403f9) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-104812: Run Pending Calls in any Thread (gh-104813) (gh-105752)Eric Snow2023-06-141-2/+7
| | | | For a while now, pending calls only run in the main thread (in the main interpreter). This PR changes things to allow any thread run a pending call, unless the pending call was explicitly added for the main thread to run. (cherry picked from commit 757b402)
* Use support.sleeping_retry() and support.busy_retry() (#93848)Victor Stinner2022-06-151-10/+8
| | | | | | * Replace time.sleep(0.010) with sleeping_retry() to use an exponential sleep. * support.wait_process(): reuse sleeping_retry(). * _test_eintr: remove unused variables.
* gh-84461: Add sys._emscripten_info, improve docs and build (gh-91781)Christian Heimes2022-04-231-6/+1
|
* bpo-40280: Detect missing threading on WASM platforms (GH-32352)Christian Heimes2022-04-071-1/+14
| | | Co-authored-by: Brett Cannon <brett@python.org>
* bpo-40280: Detect if WASM platform supports threading (GH-32243)Christian Heimes2022-04-021-0/+27
| | | Automerge-Triggered-By: GH:tiran
* Fix typos in the Lib directory (GH-28775)Christian Clauss2021-10-061-1/+1
| | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-40275: Fix test.support.threading_helper (GH-20488)Victor Stinner2020-05-281-6/+7
| | | | | | | * Add missing sys import * Get verbose and gc_collect() from test.support * Remove unused starttime variable. Issues spotted by pyflakes.
* bpo-40275: Adding threading_helper submodule in test.support (GH-20263)Hai Shi2020-05-271-0/+208