Commit 05515d1b authored by R. David Murray's avatar R. David Murray

Since all regrtest -j output is now done in the main thread we are no

longer using the print lock, so remove it.
parent ebe8b2c5
...@@ -440,13 +440,12 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, ...@@ -440,13 +440,12 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
resource_denieds.append(test) resource_denieds.append(test)
if use_mp: if use_mp:
from threading import Thread, Lock from threading import Thread
from queue import Queue, Empty from queue import Queue, Empty
from subprocess import Popen, PIPE, STDOUT from subprocess import Popen, PIPE, STDOUT
from collections import deque from collections import deque
# TextIOWrapper is not entirely thread-safe now, # TextIOWrapper is not entirely thread-safe now,
# it can produce duplicate output when printing from several threads. # it can produce duplicate output when printing from several threads.
print_lock = Lock()
debug_output_pat = re.compile(r"\[\d+ refs\]$") debug_output_pat = re.compile(r"\[\d+ refs\]$")
pending = deque() pending = deque()
output = Queue() output = Queue()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment