]> granicus.if.org Git - python/commitdiff
Issue #17206: test.regrtest and test.script_helper enable faulthandler module
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 25 Jun 2013 19:24:36 +0000 (21:24 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 25 Jun 2013 19:24:36 +0000 (21:24 +0200)
in subprocesses.

Lib/test/regrtest.py
Lib/test/script_helper.py

index 028f3b496b5a103ac4cc363e444cd91539d43cee..e6eef1640fa2d9ff7d6a40f73e4ac9ee75d09223 100755 (executable)
@@ -701,7 +701,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
         output = Queue()
         pending = MultiprocessTests(tests)
         opt_args = support.args_from_interpreter_flags()
-        base_cmd = [sys.executable] + opt_args + ['-m', 'test.regrtest']
+        base_cmd = [sys.executable] + opt_args
+        base_cmd += ['-X', 'faulthandler', '-m', 'test.regrtest']
         def work():
             # A worker thread.
             try:
index 3b7df42bff685c96a42434f2157925f12c7d3e6c..3c6430b31a4c0f71a3e5af1655845a51865f26a9 100644 (file)
@@ -17,7 +17,7 @@ from test.support import make_legacy_pyc, strip_python_stderr
 
 # Executing the interpreter in a subprocess
 def _assert_python(expected_success, *args, **env_vars):
-    cmd_line = [sys.executable]
+    cmd_line = [sys.executable, '-X', 'faulthandler']
     if not env_vars:
         cmd_line.append('-E')
     # Need to preserve the original environment, for in-place testing of