Skip to content

Commit

Permalink
fix: remove whitespace and fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
CompRhys committed Apr 16, 2024
1 parent 6b31efe commit d196f6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion upath/tests/implementations/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_is_LocalPath(self):
assert isinstance(self.path, LocalPath)

def test_relative_to(self):
assert '/file.txt' == UPath("file:///test_bucket/file.txt").relative_to(UPath("file:///test_bucket")).path
assert 'file.txt' == UPath("file:///test_bucket/file.txt").relative_to(UPath("file:///test_bucket")).path


@skip_on_windows
Expand Down
2 changes: 1 addition & 1 deletion upath/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def test_relative_to():
with pytest.raises(ValueError):
UPath("s3://test_bucket/file.txt", anon=True).relative_to(
UPath("s3://test_bucket", anon=False)
)
)


def test_uri_parsing():
Expand Down

0 comments on commit d196f6c

Please sign in to comment.