Issue #17206: test.regrtest and test.script_helper enable faulthandler module
in subprocesses.
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 028f3b4..e6eef16 100755
--- 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: