From f6e7a6ce651b43c6e060608a4bb20685f39e9eaa Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 12 Mar 2024 18:31:35 +0100 Subject: [PATCH] gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter() (#116658) Don't parse argv when setting the configuration, to avoid SystemExit if parsing argv fails. --- Lib/test/test_capi/test_misc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_capi/test_misc.py b/Lib/test/test_capi/test_misc.py index 64c0da6e3cc06e..c1395ab00077cb 100644 --- a/Lib/test/test_capi/test_misc.py +++ b/Lib/test/test_capi/test_misc.py @@ -1797,6 +1797,7 @@ def test_py_config_isoloated_per_interpreter(self): # double checked at the time this test was written. config = _testinternalcapi.get_config() config['int_max_str_digits'] = 55555 + config['parse_argv'] = 0 _testinternalcapi.set_config(config) sub_value = _testinternalcapi.get_config()['int_max_str_digits'] assert sub_value == 55555, sub_value