Skip to content

Commit 73174bb

Browse files
committed
Fix.
1 parent 9dd5018 commit 73174bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_relative_to(path, source, include_source, expected):
5050
)
5151
def test_find_closest_ancestor(monkeypatch, path, potential_ancestors, expected):
5252
# Ensures that files are detected by an existing suffix not if they also exist.
53-
monkeypatch.setattr("_pytask.nodes.Path.is_file", lambda x: bool(x.suffix))
53+
monkeypatch.setattr(Path, "is_file", lambda x: bool(x.suffix))
5454
result = find_closest_ancestor(path, potential_ancestors)
5555
assert result == expected
5656

0 commit comments

Comments
 (0)