Skip to content

Commit

Permalink
upath.local: WindowsUPath.path should return the posix version
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Mar 3, 2024
1 parent 9fed00b commit 9736412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion upath/implementations/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ def _from_parsed_parts(cls, drv, root, parts):

@property
def path(self) -> str:
return WindowsPath.__str__(self)
return WindowsPath.as_posix(self)
2 changes: 1 addition & 1 deletion upath/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def test_compare_to_pathlib_path_ne():


def test_handle_fspath_args(tmp_path):
f = os.fspath(tmp_path.joinpath("file.txt"))
f = tmp_path.joinpath("file.txt").as_posix()

class X:
def __str__(self):
Expand Down

0 comments on commit 9736412

Please sign in to comment.