Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-131277: allow EnvironmentVarGuard to unset more than one environment variable at once #131280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 16, 2025

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Mar 15, 2025

Lib/test/support/os_helper.py Outdated Show resolved Hide resolved
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@picnixz picnixz merged commit 3185e31 into python:main Mar 16, 2025
39 checks passed
@picnixz picnixz deleted the feat/test/environ-guard-131277 branch March 16, 2025 13:09
@picnixz
Copy link
Member Author

picnixz commented Mar 16, 2025

@hugovk To ease backports, should I backport this? (it's technically a feature but it's a test feature so...)

@hugovk
Copy link
Member

hugovk commented Mar 16, 2025

I think so, but let's ask @serhiy-storchaka.

@serhiy-storchaka
Copy link
Member

I have no strong opinion. We usually backport test changes to easy future backports (and to easy comparison between developed and maintained versions). But since it is already documented, it would need an extra work to properly document the change. You can no longer use "versionchanged: next".

@picnixz
Copy link
Member Author

picnixz commented Mar 17, 2025

You can no longer use "versionchanged: next".

Arf, I didn't think about this. Can we maybe not document it? Technically... it's not breaking anything (it's still backwards compatible) as we're just handling more arguments. So we could say that it's only a public feature in 3.14?

plashchynski pushed a commit to plashchynski/cpython that referenced this pull request Mar 17, 2025
…nvironment variable at once (python#131280)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@serhiy-storchaka
Copy link
Member

It is up to you. You are a core dev, you do the work, you decide.

I am +0 for backporting.

@picnixz
Copy link
Member Author

picnixz commented Mar 18, 2025

I'll backport this. I don't want to cause un-necessary work for future backports.

@picnixz picnixz added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Mar 18, 2025
@miss-islington-app
Copy link

Thanks @picnixz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @picnixz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @picnixz, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 3185e3115c918ec189e16cf9f5b51a13a0146556 3.12

@miss-islington-app
Copy link

Sorry, @picnixz, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 3185e3115c918ec189e16cf9f5b51a13a0146556 3.13

@picnixz
Copy link
Member Author

picnixz commented Mar 18, 2025

Ah I should do a manual backport as I don't want to expose this.

picnixz added a commit to picnixz/cpython that referenced this pull request Mar 18, 2025
…nvironment variable at once (python#131280)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Mar 18, 2025

GH-131409 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Mar 18, 2025
picnixz added a commit to picnixz/cpython that referenced this pull request Mar 18, 2025
…nvironment variable at once (python#131280)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Mar 18, 2025

GH-131409 is a backport of this pull request to the 3.13 branch.

@bedevere-app
Copy link

bedevere-app bot commented Mar 18, 2025

GH-131410 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 18, 2025
picnixz added a commit that referenced this pull request Mar 18, 2025
…vironment variable at once (GH-131280) (#131410)

(cherry picked from commit 3185e31)

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
picnixz added a commit that referenced this pull request Mar 18, 2025
…vironment variable at once (GH-131280) (#131409)

(cherry picked from commit 3185e31)

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
…nvironment variable at once (python#131280)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.