From 6bf1c101bada767427bc10a2cf368bfff73f7336 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 29 Sep 2023 21:13:26 +0200 Subject: [PATCH] support.args_from_interpreter_flags() adds -X uops --- Lib/subprocess.py | 3 ++- Lib/test/test_support.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 6df5dd551ea67e..2d46613327127e 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -346,7 +346,8 @@ def _args_from_interpreter_flags(): if dev_mode: args.extend(('-X', 'dev')) for opt in ('faulthandler', 'tracemalloc', 'importtime', - 'frozen_modules', 'showrefcount', 'utf8'): + 'frozen_modules', 'showrefcount', 'utf8', + 'uops'): if opt in xoptions: value = xoptions[opt] if value is True: diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 902bec78451307..9a92308975c7e6 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -527,6 +527,7 @@ def test_args_from_interpreter_flags(self): ['-X', 'showrefcount'], ['-X', 'tracemalloc'], ['-X', 'tracemalloc=3'], + ['-X', 'uops'], ): with self.subTest(opts=opts): self.check_options(opts, 'args_from_interpreter_flags')