mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Since all regrtest -j output is now done in the main thread we are no
longer using the print lock, so remove it.
This commit is contained in:
parent
8054fbd300
commit
9da8197570
1 changed files with 1 additions and 2 deletions
|
@ -440,13 +440,12 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
|
|||
resource_denieds.append(test)
|
||||
|
||||
if use_mp:
|
||||
from threading import Thread, Lock
|
||||
from threading import Thread
|
||||
from queue import Queue, Empty
|
||||
from subprocess import Popen, PIPE, STDOUT
|
||||
from collections import deque
|
||||
# TextIOWrapper is not entirely thread-safe now,
|
||||
# it can produce duplicate output when printing from several threads.
|
||||
print_lock = Lock()
|
||||
debug_output_pat = re.compile(r"\[\d+ refs\]$")
|
||||
pending = deque()
|
||||
output = Queue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue