Merge pull request #8496 from francoisfreitag/unsetenv

Unset env variables in tests by del os.environ
This commit is contained in:
Takeshi KOMIYA 2020-11-27 22:04:54 +09:00 committed by GitHub
commit e0704fb32e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,4 +62,4 @@ def modify_env(**env):
try:
os.environ[k] = original_env[k]
except KeyError:
os.unsetenv(k)
del os.environ[k]