https://github.com/python/cpython/commit/b38c04e70c63ae880da857891444c1be56474da1 commit: b38c04e70c63ae880da857891444c1be56474da1 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: vstinner <[email protected]> date: 2024-03-12T19:06:32+01:00 summary:
[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 <[email protected]> files: M Lib/test/test_capi/test_misc.py diff --git a/Lib/test/test_capi/test_misc.py b/Lib/test/test_capi/test_misc.py index 403c4e96818da2..37dff355b1ca64 100644 --- a/Lib/test/test_capi/test_misc.py +++ b/Lib/test/test_capi/test_misc.py @@ -1773,6 +1773,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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
