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