Skip to content

Commit

Permalink
Update xfail test for URL.relative_to
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksbabieiev committed Dec 27, 2024
1 parent 4033cb7 commit 6a9d13b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ def test_relative_to(target: str, base: str, expected: str):
assert result_url == expected_url


@pytest.mark.xfail(reason="Empty segments are not preserved")
@pytest.mark.xfail(
reason="""
Empty segments are not preserved
because URLs are converted to PurePosixPath during calculation.
See https://github.com/aio-libs/yarl/pull/1388#issuecomment-2437346012
"""
)
@pytest.mark.parametrize(
("target", "base", "expected"),
[
Expand Down

0 comments on commit 6a9d13b

Please sign in to comment.