Blame SOURCES/174.patch

e33614
From 0561ddcedcd12ea1f98b7ddedb93686ed8a5ffa4 Mon Sep 17 00:00:00 2001
e33614
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
e33614
Date: Tue, 12 Mar 2019 18:44:36 +0100
e33614
Subject: [PATCH] Support pytest 4, don't apply marks directly to parameters
e33614
e33614
Fixes https://github.com/chardet/chardet/issues/173
e33614
---
e33614
 test.py | 2 +-
e33614
 1 file changed, 1 insertion(+), 1 deletion(-)
e33614
e33614
diff --git a/test.py b/test.py
e33614
index 9833307..ad2b753 100644
e33614
--- a/test.py
e33614
+++ b/test.py
e33614
@@ -59,7 +59,7 @@ def gen_test_params():
e33614
             full_path = join(path, file_name)
e33614
             test_case = full_path, encoding
e33614
             if full_path in EXPECTED_FAILURES:
e33614
-                test_case = pytest.mark.xfail(test_case)
e33614
+                test_case = pytest.param(*test_case, marks=pytest.mark.xfail)
e33614
             yield test_case
e33614
 
e33614