mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #25220: Fix "-m test --forever"
* Fix "-m test --forever": replace _test_forever() with self._test_forever() * Add unit test for --forever * Add unit test for a failing test * Fix also some pyflakes warnings in libregrtest
This commit is contained in:
parent
38031143fb
commit
9a14214aee
4 changed files with 99 additions and 43 deletions
|
@ -5,7 +5,6 @@ import sys
|
|||
import time
|
||||
import traceback
|
||||
import types
|
||||
import unittest
|
||||
from test import support
|
||||
try:
|
||||
import threading
|
||||
|
@ -173,7 +172,7 @@ def run_tests_multiprocess(regrtest):
|
|||
try:
|
||||
while finished < regrtest.ns.use_mp:
|
||||
try:
|
||||
item = output.get(timeout=PROGRESS_UPDATE)
|
||||
item = output.get(timeout=timeout)
|
||||
except queue.Empty:
|
||||
running = get_running(workers)
|
||||
if running:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue