Skip to content

Commit c638fb3

Browse files
vstinnermiss-islington
authored andcommitted
pythongh-109413: Fix libregrtest get_running() (pythonGH-127153)
Skip threads which are not running. (cherry picked from commit 0cb2017) Co-authored-by: Victor Stinner <[email protected]>
1 parent 5468d21 commit c638fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/libregrtest/run_workers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def get_running(workers: list[WorkerThread]) -> str | None:
451451
running: list[str] = []
452452
for worker in workers:
453453
test_name = worker.test_name
454-
if not test_name:
454+
if test_name == _NOT_RUNNING:
455455
continue
456456
dt = time.monotonic() - worker.start_time
457457
if dt >= PROGRESS_MIN_TIME:

0 commit comments

Comments
 (0)