summaryrefslogtreecommitdiffhomepage
path: root/libs/html5lib/tests/test_stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'libs/html5lib/tests/test_stream.py')
-rw-r--r--libs/html5lib/tests/test_stream.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/html5lib/tests/test_stream.py b/libs/html5lib/tests/test_stream.py
index 27c39538c..efe9b472f 100644
--- a/libs/html5lib/tests/test_stream.py
+++ b/libs/html5lib/tests/test_stream.py
@@ -308,9 +308,11 @@ def test_invalid_codepoints(inp, num):
("'\\uD800\\uD800\\uD800'", 3),
("'a\\uD800a\\uD800a\\uD800a'", 3),
("'\\uDFFF\\uDBFF'", 2),
- pytest.mark.skipif(sys.maxunicode == 0xFFFF,
- ("'\\uDBFF\\uDFFF'", 2),
- reason="narrow Python")])
+ pytest.param(
+ "'\\uDBFF\\uDFFF'", 2,
+ marks=pytest.mark.skipif(
+ sys.maxunicode == 0xFFFF,
+ reason="narrow Python"))])
def test_invalid_codepoints_surrogates(inp, num):
inp = eval(inp) # pylint:disable=eval-used
fp = StringIO(inp)