tests: fix issue with os.environ binding (#41342)
This commit is contained in:
parent
539fa5c39a
commit
f57ac8d2da
1 changed files with 2 additions and 1 deletions
|
@ -147,7 +147,8 @@ def test_reverse_environment_modifications(working_env):
|
||||||
|
|
||||||
reversal = to_reverse.reversed()
|
reversal = to_reverse.reversed()
|
||||||
|
|
||||||
os.environ = start_env.copy()
|
os.environ.clear()
|
||||||
|
os.environ.update(start_env)
|
||||||
|
|
||||||
print(os.environ)
|
print(os.environ)
|
||||||
to_reverse.apply_modifications()
|
to_reverse.apply_modifications()
|
||||||
|
|
Loading…
Reference in a new issue