tests: fix issue with os.environ binding (#41342)

This commit is contained in:
Harmen Stoppels 2023-11-30 07:18:41 +01:00
parent 539fa5c39a
commit f57ac8d2da

View file

@ -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()