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