Skip to content

Commit aa971bc

Browse files
committed
inherit -X traceback_timestamps in multiprocessing spawned children
1 parent 1a44bc4 commit aa971bc

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Lib/subprocess.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,16 @@ def _args_from_interpreter_flags():
351351
# -X options
352352
if dev_mode:
353353
args.extend(('-X', 'dev'))
354-
for opt in ('faulthandler', 'tracemalloc', 'importtime',
355-
'frozen_modules', 'showrefcount', 'utf8', 'gil'):
354+
for opt in (
355+
'faulthandler',
356+
'frozen_modules',
357+
'gil',
358+
'importtime',
359+
'showrefcount',
360+
'traceback_timestamps',
361+
'tracemalloc',
362+
'utf8',
363+
):
356364
if opt in xoptions:
357365
value = xoptions[opt]
358366
if value is True:

0 commit comments

Comments
 (0)