We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ef249d commit 88046abCopy full SHA for 88046ab
1 file changed
tests/unit_shim.py
@@ -80,6 +80,9 @@ def test_install_warns_about_path_shadowing(tmp_path, capsys, monkeypatch):
80
elsewhere.mkdir()
81
real_git = elsewhere / _name("git")
82
real_git.write_bytes(b"# pretend real git\n")
83
+ # shutil.which() on Unix only finds executable files.
84
+ if os.name != "nt":
85
+ real_git.chmod(real_git.stat().st_mode | 0o111)
86
monkeypatch.setenv("PATH", str(elsewhere) + os.pathsep + str(tmp_path))
87
rc = cli_run("install-git-shim", "--dir", str(tmp_path))
88
assert rc == 0
0 commit comments