Skip to content

Commit

Permalink
test specifically for the yarl.URL usage we need
Browse files Browse the repository at this point in the history
previous variant failed on PyPy, but that is yarl.URL("invalid") behaviour we do not depend on
  • Loading branch information
pajod committed Feb 7, 2024
1 parent 28b7d81 commit 5be70a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_http_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,9 @@ def test_http_request_parser_utf8_request_line(parser: Any) -> None:
assert msg.compression is None
assert not msg.upgrade
assert not msg.chunked
assert msg.url.path == URL("/P%C3%BCnktchen\udca0\udcef\udcb7").path
# python HTTP parser depends on Cython and CPython URL to match
# .. but yarl.URL("/abs") is not equal to URL.build(path="/abs"), see #6409
assert msg.url == URL.build(path="/Pünktchen\udca0\udcef\udcb7", encoded=True)


def test_http_request_parser_utf8(parser: Any) -> None:
Expand Down

0 comments on commit 5be70a1

Please sign in to comment.