Skip to content

Commit

Permalink
pythongh-109413: Fix libregrtest get_running() (python#127153)
Browse files Browse the repository at this point in the history
Skip threads which are not running.
  • Loading branch information
vstinner authored Nov 22, 2024
1 parent 8899e85 commit 0cb2017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/libregrtest/run_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0cb2017

Please sign in to comment.