From: Victor Stinner Date: Tue, 27 Apr 2010 21:47:01 +0000 (+0000) Subject: Issue #7449, part 2: regrtest.py -j option requires thread support X-Git-Tag: v2.7b2~172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b4a69d79bcdd50829ce871be703606211965e72;p=python Issue #7449, part 2: regrtest.py -j option requires thread support --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 349e15e69c..545e0ea2b8 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -478,7 +478,11 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, tests = iter(selected) 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 subprocess import Popen, PIPE debug_output_pat = re.compile(r"\[\d+ refs\]$")