diff options
author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2025-03-16 13:09:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-16 13:09:33 (GMT) |
commit | 3185e3115c918ec189e16cf9f5b51a13a0146556 (patch) | |
tree | 4a773847ee275359ae58832afea1071858e539af /Doc/library | |
parent | 9558d22ac308c102e4f843541eead2022050225e (diff) | |
download | cpython-3185e3115c918ec189e16cf9f5b51a13a0146556.zip cpython-3185e3115c918ec189e16cf9f5b51a13a0146556.tar.gz cpython-3185e3115c918ec189e16cf9f5b51a13a0146556.tar.bz2 |
gh-131277: allow `EnvironmentVarGuard` to unset more than one environment variable at once (#131280)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/test.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst index def22f8..46f8975 100644 --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -1435,9 +1435,12 @@ The :mod:`test.support.os_helper` module provides support for os tests. ``value``. -.. method:: EnvironmentVarGuard.unset(envvar) +.. method:: EnvironmentVarGuard.unset(envvar, *others) - Temporarily unset the environment variable ``envvar``. + Temporarily unset one or more environment variables. + + .. versionchanged:: next + More than one environment variable can be unset. .. function:: can_symlink() |