[Python-checkins] cpython: Issue #17206: test.regrtest and test.script_helper enable faulthandler module

victor.stinner python-checkins at python.org
Tue Jun 25 21:25:14 CEST 2013


http://hg.python.org/cpython/rev/c31bec42e411
changeset:   84344:c31bec42e411
parent:      84339:8f22e03f5f07
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Jun 25 21:24:36 2013 +0200
summary:
  Issue #17206: test.regrtest and test.script_helper enable faulthandler module
in subprocesses.

files:
  Lib/test/regrtest.py      |  3 ++-
  Lib/test/script_helper.py |  2 +-
  2 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -701,7 +701,8 @@
         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:
diff --git a/Lib/test/script_helper.py b/Lib/test/script_helper.py
--- a/Lib/test/script_helper.py
+++ b/Lib/test/script_helper.py
@@ -17,7 +17,7 @@
 
 # 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list