diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-03-12 18:06:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 18:06:32 (GMT) |
commit | b38c04e70c63ae880da857891444c1be56474da1 (patch) | |
tree | 0f44983400bd4fe41ee71c63db60b86e79314a51 /Lib | |
parent | d19c2eb604b8de96f5f77bab0fdf82b44390d960 (diff) | |
download | cpython-b38c04e70c63ae880da857891444c1be56474da1.zip cpython-b38c04e70c63ae880da857891444c1be56474da1.tar.gz cpython-b38c04e70c63ae880da857891444c1be56474da1.tar.bz2 |
[3.12] gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter() (GH-116658) (#116668)
gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter() (GH-116658)
Don't parse argv when setting the configuration, to avoid SystemExit if parsing argv fails.
(cherry picked from commit f6e7a6ce651b43c6e060608a4bb20685f39e9eaa)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Lib')
-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 403c4e9..37dff35 100644 --- a/Lib/test/test_capi/test_misc.py +++ b/Lib/test/test_capi/test_misc.py @@ -1773,6 +1773,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 |