aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-chardet/440828f8faafdb58700c64a9ea8f6a30b154c08b.patch
blob: c50feb16389ef37b94d04d3688deaaea05d682ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
https://github.com/chardet/chardet/commit/440828f8faafdb58700c64a9ea8f6a30b154c08b.patch

From 440828f8faafdb58700c64a9ea8f6a30b154c08b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Mon, 11 Nov 2019 21:02:51 +0100
Subject: [PATCH] Support pytest 4, don't apply marks directly to parameters
 (#174)

Fixes https://github.com/chardet/chardet/issues/173
---
 test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test.py b/test.py
index 9833307..ad2b753 100644
--- a/test.py
+++ b/test.py
@@ -59,7 +59,7 @@ def gen_test_params():
             full_path = join(path, file_name)
             test_case = full_path, encoding
             if full_path in EXPECTED_FAILURES:
-                test_case = pytest.mark.xfail(test_case)
+                test_case = pytest.param(*test_case, marks=pytest.mark.xfail)
             yield test_case