mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-109413: Fix libregrtest get_running() (#127153)
Skip threads which are not running.
This commit is contained in:
parent
8899e85de1
commit
0cb20177d6
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue