diff options
| author | François Freitag <mail@franek.fr> | 2020-11-26 21:10:45 +0100 |
|---|---|---|
| committer | François Freitag <mail@franek.fr> | 2020-11-26 21:12:28 +0100 |
| commit | 236afac7fdbe4058da55d9bfb20f22ba166a5aaf (patch) | |
| tree | 1b881d5a1972b5af80b9ad38dab38e29959ad694 /tests | |
| parent | e6e23aa45b9191655fb7790b0b97826ce663119a (diff) | |
| download | sphinx-git-236afac7fdbe4058da55d9bfb20f22ba166a5aaf.tar.gz | |
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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py index eb2c40c52..329695c8e 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -62,4 +62,4 @@ def modify_env(**env): try: os.environ[k] = original_env[k] except KeyError: - os.unsetenv(k) + del os.environ[k] |
