diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-26 21:49:53 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-26 21:49:53 -0600 |
commit | 52230acde8f9d67a9a70a55553b99f89072c6c73 (patch) | |
tree | a3d0fce94cc7813c6331969ddd1e87c9205f858c /user/py3-chardet/pytest.patch | |
parent | b65d572bc23d04bd90823e4d3a6a5770ea85a4f7 (diff) | |
download | packages-52230acde8f9d67a9a70a55553b99f89072c6c73.tar.gz packages-52230acde8f9d67a9a70a55553b99f89072c6c73.tar.bz2 packages-52230acde8f9d67a9a70a55553b99f89072c6c73.tar.xz packages-52230acde8f9d67a9a70a55553b99f89072c6c73.zip |
user/py3-chardet: enable testing since we have hypothesis now
Diffstat (limited to 'user/py3-chardet/pytest.patch')
-rw-r--r-- | user/py3-chardet/pytest.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/user/py3-chardet/pytest.patch b/user/py3-chardet/pytest.patch new file mode 100644 index 000000000..039816b78 --- /dev/null +++ b/user/py3-chardet/pytest.patch @@ -0,0 +1,24 @@ +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 + + |