Commit 1b4a69d7 authored by Victor Stinner's avatar Victor Stinner

Issue #7449, part 2: regrtest.py -j option requires thread support

parent d9d147b8
...@@ -478,7 +478,11 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, ...@@ -478,7 +478,11 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
tests = iter(selected) tests = iter(selected)
if use_mp: if use_mp:
from threading import Thread try:
from threading import Thread
except ImportError:
print "Multiprocess option requires thread support"
sys.exit(2)
from Queue import Queue from Queue import Queue
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
debug_output_pat = re.compile(r"\[\d+ refs\]$") debug_output_pat = re.compile(r"\[\d+ refs\]$")
......
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