diff options
author | Harmen Stoppels <me@harmenstoppels.nl> | 2023-11-30 07:18:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 07:18:41 +0100 |
commit | 377e7de0d283be78dea97c971f30a0bc7e8b7a8e (patch) | |
tree | e47d717c14d238932f5d2ee494b5d7b9334bf617 /lib | |
parent | 0a9c84dd25f91f9eaf670fa2fc4fe6a63c3632f3 (diff) | |
download | spack-377e7de0d283be78dea97c971f30a0bc7e8b7a8e.tar.gz spack-377e7de0d283be78dea97c971f30a0bc7e8b7a8e.tar.bz2 spack-377e7de0d283be78dea97c971f30a0bc7e8b7a8e.tar.xz spack-377e7de0d283be78dea97c971f30a0bc7e8b7a8e.zip |
tests: fix issue with os.environ binding (#41342)
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() |