Skip to content

Commit 83e7279

Browse files
authored
IPv6 addresses are not allowed to start with a single leading ':'
Fix failing tests.
1 parent 040cdef commit 83e7279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
def test_normalize_url():
1818
assert normalize_url("http://1.2.3.4:80") == "http://1.2.3.4:80"
1919
assert normalize_url("http://1.2.3.4:80:80") == "http://1.2.3.4:80"
20-
assert normalize_url("http://[:dead:beef::1]:80") == "http://[:dead:beef::1]:80"
20+
assert normalize_url("http://[dead:beef::1]:80") == "http://[dead:beef::1]:80"
2121
assert normalize_url(None) is None
22-
assert normalize_url(b"http://[:dead:beef::1]:80") is None
22+
assert normalize_url(b"http://[dead:beef::1]:80") is None
2323

2424

2525
@pytest.mark.asyncio

0 commit comments

Comments
 (0)