diff options
author | Victor Stinner <vstinner@python.org> | 2024-03-12 18:31:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 18:31:35 +0100 |
commit | f6e7a6ce651b43c6e060608a4bb20685f39e9eaa (patch) | |
tree | 163296ddbb2ab2f5f56f3d26187c2ba04b2b4b8d | |
parent | gh-116604: Check for `gcstate->enabled` in _Py_RunGC in free-threaded build (... (diff) | |
download | cpython-f6e7a6ce651b43c6e060608a4bb20685f39e9eaa.tar.gz cpython-f6e7a6ce651b43c6e060608a4bb20685f39e9eaa.tar.bz2 cpython-f6e7a6ce651b43c6e060608a4bb20685f39e9eaa.zip |
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.
-rw-r--r-- | Lib/test/test_capi/test_misc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_capi/test_misc.py b/Lib/test/test_capi/test_misc.py index 64c0da6e3cc..c1395ab0007 100644 --- a/Lib/test/test_capi/test_misc.py +++ b/Lib/test/test_capi/test_misc.py @@ -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 |