Skip to content

Commit

Permalink
pythongh-109413: Fix libregrtest get_running() (pythonGH-127153)
Browse files Browse the repository at this point in the history
Skip threads which are not running.
(cherry picked from commit 0cb2017)

Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
vstinner authored and miss-islington committed Nov 22, 2024
1 parent 5468d21 commit c638fb3
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 @@ -451,7 +451,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 c638fb3

Please sign in to comment.