[Python-checkins] cpython: Close #25369: Fix test_regrtest without thread support
victor.stinner
python-checkins at python.org
Sun Oct 11 04:04:39 EDT 2015
https://hg.python.org/cpython/rev/0d0d83b1c078
changeset: 98673:0d0d83b1c078
user: Victor Stinner <victor.stinner at gmail.com>
date: Sun Oct 11 10:03:28 2015 +0200
summary:
Close #25369: Fix test_regrtest without thread support
files:
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
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -7,6 +7,7 @@
import argparse
import faulthandler
import getopt
+import io
import os.path
import platform
import re
@@ -433,7 +434,9 @@
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')
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list