mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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>
This commit is contained in:
parent
9558d22ac3
commit
3185e3115c
15 changed files with 38 additions and 45 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue