[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: gnu: python-argh: Fix test failure.
From: |
guix-commits |
Subject: |
06/07: gnu: python-argh: Fix test failure. |
Date: |
Mon, 14 Feb 2022 18:25:06 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 48daa39724487607f07c192e47a18834f1e65182
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Feb 15 00:13:08 2022 +0100
gnu: python-argh: Fix test failure.
* gnu/packages/python-xyz.scm (python-argh)[arguments]: Add patch-tests
phase
and override check phase.
---
gnu/packages/python-xyz.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f09c40fae8..5c003e3c1a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24567,6 +24567,22 @@ itself.")
(base32
"1p5h3dnpbsjmqrvil96s71asc6i3gpinmbrabqmwnrsxprz7r3ns"))))
(build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-tests
+ (lambda _
+ ;; Fix test failures on Python 3.9.9+.
+ ;; Taken via <https://github.com/neithere/argh/issues/148>.
+ (substitute* "test/test_integration.py"
+ (("assert run\\(p, '(bar|orig-name|nest bar)', exit=True\\)\
+\\.startswith\\('invalid choice'\\)" _ name)
+ (string-append "assert 'invalid choice' in \
+run(p, '" name "', exit=True)")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
(propagated-inputs
(list python-iocapture python-mock python-pytest python-pytest-cov
python-pytest-xdist))
- branch master updated (208c607854 -> b5d472ef5d), guix-commits, 2022/02/14
- 05/07: gnu: python-pyelftools: Update to 0.28., guix-commits, 2022/02/14
- 03/07: gnu: python-drmaa: Remove unused input., guix-commits, 2022/02/14
- 04/07: gnu: python-warcio: Fix test failure., guix-commits, 2022/02/14
- 06/07: gnu: python-argh: Fix test failure.,
guix-commits <=
- 01/07: gnu: python-psutil: Update to 5.9.0., guix-commits, 2022/02/14
- 07/07: gnu: python-gffutils: Update to 0.10.1., guix-commits, 2022/02/14
- 02/07: gnu: python-drmaa: Fix build failure., guix-commits, 2022/02/14