From: R. David Murray Date: Mon, 19 Oct 2009 16:53:55 +0000 (+0000) Subject: Since all regrtest -j output is now done in the main thread we are no X-Git-Tag: v3.2a1~2369 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9da819757077963096f30bf597fada2c000ca2a0;p=python Since all regrtest -j output is now done in the main thread we are no longer using the print lock, so remove it. --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 060fb83d05..52f5cfda1b 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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()