]> granicus.if.org Git - python/commitdiff
Since all regrtest -j output is now done in the main thread we are no
authorR. David Murray <rdmurray@bitdance.com>
Mon, 19 Oct 2009 16:53:55 +0000 (16:53 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Mon, 19 Oct 2009 16:53:55 +0000 (16:53 +0000)
longer using the print lock, so remove it.

Lib/test/regrtest.py

index 060fb83d0540c6b86a25e3e806787925b73b0fa9..52f5cfda1b05c997e19f9a34774fed4e27d27628 100755 (executable)
@@ -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()