Skip to content

Commit fbe12ed

Browse files
authored
Merge pull request #233 from flokli/py39-310
test_url.py: handle 3.9 and 3.10 for http://[2a01:5cc0:1:2:3:4] testcase
2 parents 2a3c000 + 44dcf91 commit fbe12ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_url.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,11 @@ def test_safe_url_string_encoding(
420420
# (%) are not escaped.
421421
f"a://example.com#{FRAGMENT_TO_ENCODE}",
422422
}
423-
if sys.version_info < (3, 11, 4):
423+
if (
424+
sys.version_info < (3, 9, 21)
425+
or (sys.version_info[:2] == (3, 10) and sys.version_info < (3, 10, 16))
426+
or (sys.version_info[:2] == (3, 11) and sys.version_info < (3, 11, 4))
427+
):
424428
KNOWN_SAFE_URL_STRING_URL_ISSUES.add("http://[2a01:5cc0:1:2:3:4]") # Invalid IPv6
425429

426430

0 commit comments

Comments
 (0)