$OpenBSD: patch-html5lib_tests_test_stream_py,v 1.2 2019/06/30 15:32:06 kmos Exp $ From 7be0c8420b87a3c44dbbc166f37a44baca18be9e Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Thu, 30 May 2019 12:42:26 +0300 Subject: [PATCH] Fix Pytest4.x compatibility error Index: html5lib/tests/test_stream.py --- html5lib/tests/test_stream.py.orig +++ 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)