Skip to content

Commit

Permalink
feat: expanduser no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
ollie-bell committed Oct 3, 2024
1 parent 5486fa3 commit 17ea656
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion upath/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,4 +1072,4 @@ def hardlink_to( # type: ignore[override]
raise NotImplementedError

def expanduser(self) -> Self:
raise NotImplementedError
return self
3 changes: 1 addition & 2 deletions upath/tests/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ def test_exists(self, url, expected):
assert path.exists() == expected

def test_expanduser(self):
with pytest.raises(NotImplementedError):
self.path.expanduser()
assert self.path.expanduser() is self.path

@pytest.mark.parametrize(
"pattern",
Expand Down

0 comments on commit 17ea656

Please sign in to comment.