Skip to content

Commit

Permalink
tests: datapath fix samefile test
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Aug 30, 2024
1 parent 23c4965 commit 31e838b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions upath/tests/implementations/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,8 @@ def test_fsspec_compat(self):
def test_rmdir_not_empty(self):
with pytest.raises(NotADirectoryError):
self.path.rmdir()

def test_samefile(self):
f1 = self.path

assert f1.samefile(f1) is True

0 comments on commit 31e838b

Please sign in to comment.