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