diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-10-19 16:53:55 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-10-19 16:53:55 (GMT) |
commit | 9da819757077963096f30bf597fada2c000ca2a0 (patch) | |
tree | 5c5f0c944091e5630e28d2e715b0dafb1a19d63e /Lib | |
parent | 8054fbd300f4a8893683264ef57a72d3648a7d63 (diff) | |
download | cpython-9da819757077963096f30bf597fada2c000ca2a0.zip cpython-9da819757077963096f30bf597fada2c000ca2a0.tar.gz cpython-9da819757077963096f30bf597fada2c000ca2a0.tar.bz2 |
Since all regrtest -j output is now done in the main thread we are no
longer using the print lock, so remove it.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/regrtest.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 060fb83..52f5cfd 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() |