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