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.
This commit is contained in:
Victor Stinner 2024-03-12 18:31:35 +01:00 committed by GitHub
parent 5d72b75388
commit f6e7a6ce65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1797,6 +1797,7 @@ class SubinterpreterTest(unittest.TestCase):
# 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