Skip to content

Commit

Permalink
Remove constraint that the result of relative_to is a pathlib object.…
Browse files Browse the repository at this point in the history
… Instead, assert that its string value resolves to the expected value.
  • Loading branch information
jaraco committed Nov 25, 2022
1 parent 057ed57 commit e7f4ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_zipp.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def test_is_symlink(self, alpharep):
def test_relative_to(self, alpharep):
root = zipp.Path(alpharep)
relative = root.joinpath("b", "c.txt").relative_to(root / "b")
assert relative == pathlib.PurePosixPath("c.txt")
assert str(relative) == "c.txt"

relative = root.joinpath("b", "d", "e.txt").relative_to(root / "b")
assert str(relative) == "d/e.txt"
Expand Down

0 comments on commit e7f4ace

Please sign in to comment.