From: Victor Stinner Date: Fri, 22 Nov 2024 15:56:03 +0000 (+0100) Subject: gh-109413: Fix libregrtest get_running() (#127153) X-Git-Tag: v3.14.0a3~243 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0cb20177d667f0058f3d8d808abaf340e8345f04;p=thirdparty%2FPython%2Fcpython.git gh-109413: Fix libregrtest get_running() (#127153) Skip threads which are not running. --- diff --git a/Lib/test/libregrtest/run_workers.py b/Lib/test/libregrtest/run_workers.py index 0ca86a986ea4..424085a0050e 100644 --- a/Lib/test/libregrtest/run_workers.py +++ b/Lib/test/libregrtest/run_workers.py @@ -457,7 +457,7 @@ def get_running(workers: list[WorkerThread]) -> str | None: running: list[str] = [] for worker in workers: test_name = worker.test_name - if not test_name: + if test_name == _NOT_RUNNING: continue dt = time.monotonic() - worker.start_time if dt >= PROGRESS_MIN_TIME: