mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-chardet: Enable tests.
* gnu/packages/python-xyz.scm (python-chardet) [source]: Add upstream patch. [arguments]: Remove. * gnu/packages/patches/python-chardet-3.0.4-pytest.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Signed-off-by: Marius Bakke <marius@gnu.org>
This commit is contained in:
parent
3182d629a2
commit
331aaf5280
3 changed files with 18 additions and 3 deletions
15
gnu/packages/patches/python-chardet-3.0.4-pytest.patch
Normal file
15
gnu/packages/patches/python-chardet-3.0.4-pytest.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
Fix test failure with Pytest 4.
|
||||
|
||||
Taken from upstream:
|
||||
https://github.com/chardet/chardet/commit/440828f8faafdb58700c64a9ea8f6a30b154c08b
|
||||
|
||||
diff --git a/test.py b/test.py
|
||||
--- a/test.py
|
||||
+++ b/test.py
|
||||
@@ -59,5 +59,5 @@ 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
|
Loading…
Add table
Add a link
Reference in a new issue