Skip to content

Commit

Permalink
pythongh-116656: Fix test_capi test_py_config_isoloated_per_interpret…
Browse files Browse the repository at this point in the history
…er() (python#116658)

Don't parse argv when setting the configuration, to avoid SystemExit if parsing argv fails.
  • Loading branch information
vstinner authored Mar 12, 2024
1 parent 5d72b75 commit f6e7a6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_capi/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6e7a6c

Please sign in to comment.