Skip to content

gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter()#116658

Merged
Yhg1s merged 1 commit intopython:mainfrom
vstinner:test_setconfig
Mar 12, 2024
Merged

gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter()#116658
Yhg1s merged 1 commit intopython:mainfrom
vstinner:test_setconfig

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 12, 2024

Don't parse argv when setting the configuration, to avoid SystemExit if parsing argv fails.

…er()

Don't parse argv when setting the configuration, to avoid SystemExit
if parsing argv fails.
@Yhg1s Yhg1s merged commit f6e7a6c into python:main Mar 12, 2024
@miss-islington-app
Copy link

Thanks @vstinner for the PR, and @Yhg1s for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 12, 2024
…er() (pythonGH-116658)

Don't parse argv when setting the configuration, to avoid SystemExit if parsing argv fails.
(cherry picked from commit f6e7a6c)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app
Copy link

bedevere-app bot commented Mar 12, 2024

GH-116668 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Mar 12, 2024
@vstinner vstinner deleted the test_setconfig branch March 12, 2024 18:06
vstinner added a commit that referenced this pull request Mar 12, 2024
…ter() (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 f6e7a6c)

Co-authored-by: Victor Stinner <vstinner@python.org>
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
…er() (python#116658)

Don't parse argv when setting the configuration, to avoid SystemExit if parsing argv fails.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…er() (python#116658)

Don't parse argv when setting the configuration, to avoid SystemExit if parsing argv fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants