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