Skip to content

Commit f6e7a6c

Browse files
authored
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.
1 parent 5d72b75 commit f6e7a6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_capi/test_misc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,6 +1797,7 @@ def test_py_config_isoloated_per_interpreter(self):
17971797
# double checked at the time this test was written.
17981798
config = _testinternalcapi.get_config()
17991799
config['int_max_str_digits'] = 55555
1800+
config['parse_argv'] = 0
18001801
_testinternalcapi.set_config(config)
18011802
sub_value = _testinternalcapi.get_config()['int_max_str_digits']
18021803
assert sub_value == 55555, sub_value

0 commit comments

Comments
 (0)