mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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:
parent
5d72b75388
commit
f6e7a6ce65
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue