Skip to content

Conversation

@vstinner
Copy link
Contributor

@vstinner vstinner commented Oct 30, 2025

Fix find_argv_from_env() if clearenv() has been called. Python 3.15 implements os.environ.clear() as clearenv().

Close #157

@dvarrazzo
Copy link
Owner

I have verified that the test introduced when #88 was fixed triggers this issue too, so we don't need a new test. Adding Python 3.15 to the test grid reveals the failure.

Fix find_argv_from_env() if clearenv() has been called. Python 3.15
implements os.environ.clear() as clearenv().

Co-Authored-By: Karolina Surma <[email protected]>
@dvarrazzo
Copy link
Owner

Added news entry, rebased on master, verified that tests pass on Py 3.15.

Merging. Thank you very much!

@dvarrazzo dvarrazzo merged commit 070002f into dvarrazzo:master Nov 6, 2025
36 checks passed
@vstinner vstinner deleted the fix_clearenv branch November 6, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Heads-up] test_clear_segfault() fails with Python 3.15.0a1

2 participants