mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Unset env variables in tests by del os.environ
The `unsetenv()` operation does not update `os.environ`. https://docs.python.org/3/library/os.html#os.unsetenv
This commit is contained in:
parent
e6e23aa45b
commit
236afac7fd
@ -62,4 +62,4 @@ def modify_env(**env):
|
||||
try:
|
||||
os.environ[k] = original_env[k]
|
||||
except KeyError:
|
||||
os.unsetenv(k)
|
||||
del os.environ[k]
|
||||
|
Loading…
Reference in New Issue
Block a user