diff options
author | Victor Stinner <vstinner@python.org> | 2024-11-22 15:56:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-22 15:56:03 (GMT) |
commit | 0cb20177d667f0058f3d8d808abaf340e8345f04 (patch) | |
tree | 44925bd4f9a9a74fccfda44e76735cd617f35cb6 | |
parent | 8899e85de100557899da05f0b37867a371a73800 (diff) | |
download | cpython-0cb20177d667f0058f3d8d808abaf340e8345f04.zip cpython-0cb20177d667f0058f3d8d808abaf340e8345f04.tar.gz cpython-0cb20177d667f0058f3d8d808abaf340e8345f04.tar.bz2 |
gh-109413: Fix libregrtest get_running() (#127153)
Skip threads which are not running.
-rw-r--r-- | Lib/test/libregrtest/run_workers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/run_workers.py b/Lib/test/libregrtest/run_workers.py index 0ca86a9..424085a 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: |