https://github.com/python/cpython/commit/f6e7a6ce651b43c6e060608a4bb20685f39e9eaa
commit: f6e7a6ce651b43c6e060608a4bb20685f39e9eaa
branch: main
author: Victor Stinner <[email protected]>
committer: Yhg1s <[email protected]>
date: 2024-03-12T18:31:35+01:00
summary:

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.

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 64c0da6e3cc06e..c1395ab00077cb 100644
--- a/Lib/test/test_capi/test_misc.py
+++ b/Lib/test/test_capi/test_misc.py
@@ -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

_______________________________________________
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]

Reply via email to