Skip to content

Commit 9d44b58

Browse files
committed
windows fixes 4
1 parent 383b9f6 commit 9d44b58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ def test_which_windows(mocker):
257257
def test_which_unix(mocker):
258258
"""Test which() on Unix platform."""
259259
mocker.patch("platform.system", return_value="Linux")
260-
mocker.patch.dict("os.environ", {"PATH": "/usr/bin:/bin"})
260+
mocker.patch("os.pathsep", ":")
261+
mocker.patch.dict("os.environ", {"PATH": "/usr/bin:/bin"}, clear=True)
261262

262263
def exists_side_effect(path):
263264
return path == "/usr/bin/python"

0 commit comments

Comments
 (0)