diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/test/util/environment.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/test/util/environment.py b/lib/spack/spack/test/util/environment.py index b797331b77..21fbf4ebe6 100644 --- a/lib/spack/spack/test/util/environment.py +++ b/lib/spack/spack/test/util/environment.py @@ -147,7 +147,8 @@ def test_reverse_environment_modifications(working_env): reversal = to_reverse.reversed() - os.environ = start_env.copy() + os.environ.clear() + os.environ.update(start_env) print(os.environ) to_reverse.apply_modifications() |