Skip to content

Commit f0d1a20

Browse files
[3.13] gh-109413: Fix libregrtest get_running() (GH-127153) (#127157)
gh-109413: Fix libregrtest get_running() (GH-127153) Skip threads which are not running. (cherry picked from commit 0cb2017) Co-authored-by: Victor Stinner <[email protected]>
1 parent 7f22b87 commit f0d1a20

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)