diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-10-11 08:03:28 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-10-11 08:03:28 (GMT) |
commit | 4967146c8d6f68480c5ca4ed73940607dd1d9286 (patch) | |
tree | 5cb09f16f4dde690221e38b67801b081296e96b2 | |
parent | 92f0113701c6404f9e1ec90e3260084fc6a2ef09 (diff) | |
download | cpython-4967146c8d6f68480c5ca4ed73940607dd1d9286.zip cpython-4967146c8d6f68480c5ca4ed73940607dd1d9286.tar.gz cpython-4967146c8d6f68480c5ca4ed73940607dd1d9286.tar.bz2 |
Close #25369: Fix test_regrtest without thread support
-rw-r--r-- | Lib/test/test_regrtest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py index 2e33555..0f00698 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') |