Skip to content

Commit 220b6b8

Browse files
committed
Add test
1 parent ee9d84c commit 220b6b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/discovery/test_discovery.py

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ def test_discovery_via_path_not_found(tmp_path, monkeypatch):
6363
def test_discovery_via_path_in_nonbrowseable_directory(tmp_path, monkeypatch):
6464
bad_perm = tmp_path / "bad_perm"
6565
bad_perm.mkdir(mode=0o000)
66+
# path entry is unreadable
67+
monkeypatch.setenv("PATH", str(bad_perm))
68+
interpreter = get_interpreter(uuid4().hex, [])
69+
assert interpreter is None
70+
# path entry parent is unreadable
6671
monkeypatch.setenv("PATH", str(bad_perm / "bin"))
6772
interpreter = get_interpreter(uuid4().hex, [])
6873
assert interpreter is None

0 commit comments

Comments
 (0)