with pytest 4.x Requested by feinerer@ based upon a discussion I was having with danj@ about a similar change: https://marc.info/?l=openbsd-ports&m=156184226517487&w=2 Best format for the information from sthen@
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
$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 <slev@altlinux.org>
|
|
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)
|