Skip to content

Commit e16734d

Browse files
committed
fix: use os.path.samefile for accurate directory comparison
1 parent cba7d66 commit e16734d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cli_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ async def test_find_project_root_at_root():
613613
with tempfile.TemporaryDirectory() as temp_dir:
614614
os.makedirs(os.path.join(temp_dir, ".git"))
615615
# in a git repo, find_project_root should not go beyond the git root
616-
assert find_project_root(temp_dir, ".git") == temp_dir
616+
assert os.path.samefile(find_project_root(temp_dir, ".git"), temp_dir)
617617
assert find_project_root(temp_dir, ".vectorcode") is None
618618

619619

0 commit comments

Comments
 (0)