Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
fix Windows failures (take 2)
  • Loading branch information
picnixz committed Jan 1, 2026
commit 7b6e2db3ce57d795c828d20281511137bab63729
7 changes: 5 additions & 2 deletions Lib/test/test_os/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -2666,8 +2666,11 @@ def test_execve_env_concurrent_mutation_with_fspath_windows(self):
code = """
import os, sys

assert list(os.environ.keys()) == ["SYSTEMROOT"]
assert list(os.environ.values()) == [{SYSTEMROOT!r}]
assert "SYSTEMROOT" in os.environ, list(os.environ.keys())
assert os.environ["SYSTEMROOT"] == {SYSTEMROOT!r}, (
repr(os.environ["SYSTEMROOT"]),
repr({SYSTEMROOT!r}),
)

class MyPath:
def __fspath__(self):
Expand Down
Loading