From fed77f3dbd1e08de12941e1127ae1cdc5b57457a Mon Sep 17 00:00:00 2001
From: Alexander Kapshuna <kapsh@kap.sh>
Date: Tue, 15 Oct 2019 01:35:19 +0300
Subject: [PATCH] Update deprecated in pytest 4 parametrize mark

https://docs.pytest.org/en/4.0.0/deprecations.html#marks-in-pytest-mark-parametrize
---
 html5lib/tests/test_stream.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/html5lib/tests/test_stream.py b/html5lib/tests/test_stream.py
index 27c39538..345885a6 100644
--- a/html5lib/tests/test_stream.py
+++ b/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)