We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 383b9f6 commit 9d44b58Copy full SHA for 9d44b58
tests/test_common.py
@@ -257,7 +257,8 @@ def test_which_windows(mocker):
257
def test_which_unix(mocker):
258
"""Test which() on Unix platform."""
259
mocker.patch("platform.system", return_value="Linux")
260
- mocker.patch.dict("os.environ", {"PATH": "/usr/bin:/bin"})
+ mocker.patch("os.pathsep", ":")
261
+ mocker.patch.dict("os.environ", {"PATH": "/usr/bin:/bin"}, clear=True)
262
263
def exists_side_effect(path):
264
return path == "/usr/bin/python"
0 commit comments