Skip to content

Commit 7b6e2db

Browse files
committed
fix Windows failures (take 2)
1 parent 5bd7d39 commit 7b6e2db

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Lib/test/test_os/test_os.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,8 +2666,11 @@ def test_execve_env_concurrent_mutation_with_fspath_windows(self):
26662666
code = """
26672667
import os, sys
26682668
2669-
assert list(os.environ.keys()) == ["SYSTEMROOT"]
2670-
assert list(os.environ.values()) == [{SYSTEMROOT!r}]
2669+
assert "SYSTEMROOT" in os.environ, list(os.environ.keys())
2670+
assert os.environ["SYSTEMROOT"] == {SYSTEMROOT!r}, (
2671+
repr(os.environ["SYSTEMROOT"]),
2672+
repr({SYSTEMROOT!r}),
2673+
)
26712674
26722675
class MyPath:
26732676
def __fspath__(self):

0 commit comments

Comments
 (0)