Skip to content

Commit 11bf84e

Browse files
committed
Fix test again
1 parent 96d6c51 commit 11bf84e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/snippets/stdlib_os.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def __exit__(self, exc_type, exc_val, exc_tb):
5555
assert os.getenv(ENV_KEY) == None
5656

5757
if os.name == "posix":
58-
os.environ[ENV_KEY] = ENV_VALUE
58+
os.putenv(ENV_KEY, ENV_VALUE)
5959
os.unsetenv(ENV_KEY)
60-
assert ENV_KEY not in os.environ
6160
assert os.getenv(ENV_KEY) == None

0 commit comments

Comments
 (0)