-
-
Notifications
You must be signed in to change notification settings - Fork 32k
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
Conversation
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@hugovk To ease backports, should I backport this? (it's technically a feature but it's a test feature so...) |
I think so, but let's ask @serhiy-storchaka. |
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". |
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? |
…nvironment variable at once (python#131280) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
It is up to you. You are a core dev, you do the work, you decide. I am +0 for backporting. |
I'll backport this. I don't want to cause un-necessary work for future backports. |
Thanks @picnixz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Thanks @picnixz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, @picnixz, I could not cleanly backport this to
|
Sorry, @picnixz, I could not cleanly backport this to
|
Ah I should do a manual backport as I don't want to expose this. |
…nvironment variable at once (python#131280) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
GH-131409 is a backport of this pull request to the 3.13 branch. |
…nvironment variable at once (python#131280) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
GH-131409 is a backport of this pull request to the 3.13 branch. |
GH-131410 is a backport of this pull request to the 3.12 branch. |
…nvironment variable at once (python#131280) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
test.support.os_helper.EnvironmentVarGuard
interface #131277📚 Documentation preview 📚: https://cpython-previews--131280.org.readthedocs.build/