diff options
-rwxr-xr-x | Lib/test/regrtest.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 349e15e..545e0ea 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\]$") |