Skip to content

Commit f9cb6fa

Browse files
EdwardBettsbdraco
andauthored
IPv6 addresses are not allowed to start with a single leading ':' (#53)
Fix failing tests. Co-authored-by: J. Nick Koston <[email protected]>
1 parent 60e58fa commit f9cb6fa

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)