mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #8496 from francoisfreitag/unsetenv
Unset env variables in tests by del os.environ
This commit is contained in:
commit
e0704fb32e
@ -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