We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81ae570 commit dac182dCopy full SHA for dac182d
tests/test_lib.py
@@ -31,8 +31,10 @@ def test(entry):
31
try:
32
pattern = URLPattern(*entry["pattern"])
33
34
- except ValueError:
35
- pytest.xfail("unsupported regular expression")
+ except UnicodeEncodeError as e:
+ if e.reason == "surrogates not allowed":
36
+ pytest.xfail(e.reason)
37
+ raise
38
39
if "expected_obj" in entry:
40
for key in entry["expected_obj"]:
0 commit comments