From 83e727907a64b9bb418e1f7a9e418a476e4724c3 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 16 Sep 2024 10:07:14 +0100 Subject: [PATCH] IPv6 addresses are not allowed to start with a single leading ':' Fix failing tests. --- tests/test_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_util.py b/tests/test_util.py index 0da30f1..e3eaa71 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -17,9 +17,9 @@ def test_normalize_url(): assert normalize_url("http://1.2.3.4:80") == "http://1.2.3.4:80" assert normalize_url("http://1.2.3.4:80:80") == "http://1.2.3.4:80" - assert normalize_url("http://[:dead:beef::1]:80") == "http://[:dead:beef::1]:80" + assert normalize_url("http://[dead:beef::1]:80") == "http://[dead:beef::1]:80" assert normalize_url(None) is None - assert normalize_url(b"http://[:dead:beef::1]:80") is None + assert normalize_url(b"http://[dead:beef::1]:80") is None @pytest.mark.asyncio