From: Victor Stinner Date: Sun, 11 Oct 2015 08:03:28 +0000 (+0200) Subject: Close #25369: Fix test_regrtest without thread support X-Git-Tag: v3.6.0a1~1264 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4967146c8d6f68480c5ca4ed73940607dd1d9286;p=python Close #25369: Fix test_regrtest without thread support --- diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py index 2e33555afe..0f0069836b 100644 --- a/Lib/test/test_regrtest.py +++ b/Lib/test/test_regrtest.py @@ -7,6 +7,7 @@ Note: test_regrtest cannot be run twice in parallel. import argparse import faulthandler import getopt +import io import os.path import platform import re @@ -433,7 +434,9 @@ class ProgramsTestCase(BaseTestCase): self.tests = [self.create_test() for index in range(self.NTEST)] self.python_args = ['-Wd', '-E', '-bb'] - self.regrtest_args = ['-uall', '-rwW', '--timeout', '3600', '-j4'] + self.regrtest_args = ['-uall', '-rwW'] + if hasattr(faulthandler, 'dump_traceback_later'): + self.regrtest_args.extend(('--timeout', '3600', '-j4')) if sys.platform == 'win32': self.regrtest_args.append('-n')