Skip to content

Commit b1e7eb9

Browse files
The-Compilerchadkouse
authored andcommitted
1 parent 021547e commit b1e7eb9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/unit/utils/test_urlmatch.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@
1414
"""
1515

1616
import string
17+
import urllib.parse
1718

1819
import pytest
1920
import hypothesis
2021
import hypothesis.strategies as hst
2122
from qutebrowser.qt.core import QUrl
2223

23-
from qutebrowser.utils import urlmatch
24+
from qutebrowser.utils import urlmatch, utils
2425

2526
# FIXME:v4 (lint): disable=line-too-long
2627

@@ -76,7 +77,10 @@
7677
pytest.param(
7778
"http://[2607:f8b0:4005:805::200e]]/*",
7879
"Invalid IPv6 URL",
79-
marks=pytest.mark.xfail(reason="https://bugs.python.org/issue34360"),
80+
marks=pytest.mark.xfail(
81+
not utils.raises(ValueError, urllib.parse.urlparse, "http://[::1]]"),
82+
reason="https://github.com/python/cpython/issues/105704"
83+
),
8084
id='host-ipv6-two-closing',
8185
),
8286
# Two open brackets (`[[`).

0 commit comments

Comments
 (0)