Skip to content

Commit

Permalink
Add test for #1833
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Jun 1, 2022
1 parent 2e0ec53 commit f3d596b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/models/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,11 @@ def test_ipv6_url_from_raw_url(host):
assert url.host == "::ffff:192.168.0.1"
assert url.netloc == b"[::ffff:192.168.0.1]"
assert str(url) == "https://[::ffff:192.168.0.1]/"


def test_resolution_error_1833():
"""
See https://github.com/encode/httpx/issues/1833
"""
url = httpx.URL("https://example.com/?[]")
assert url.join("/") == "https://example.com/"

0 comments on commit f3d596b

Please sign in to comment.