diff --git a/tests/test_zipp.py b/tests/test_zipp.py index 4208a83..1e17870 100644 --- a/tests/test_zipp.py +++ b/tests/test_zipp.py @@ -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"