guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: python-pkginfo: Enable tests.


From: guix-commits
Subject: 02/02: gnu: python-pkginfo: Enable tests.
Date: Wed, 10 Feb 2021 22:04:19 -0500 (EST)

iyzsong pushed a commit to branch master
in repository guix.

commit 07143d9fe11151b884901186bace1b3ec65d9f40
Author: Tanguy Le Carrour <tanguy@bioneland.org>
AuthorDate: Mon Feb 1 09:52:31 2021 +0100

    gnu: python-pkginfo: Enable tests.
    
    * gnu/packages/python-xyz.scm (python-pkginfo)[arguments]: Don't disable 
tests.
    Disable a failing test.
    
    Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
---
 gnu/packages/python-xyz.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c6310e6..5e6f902 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17291,8 +17291,14 @@ design and layout.")
             "1d1xn1xmfvz0jr3pj8irdwnwby3r13g0r2gwklr1q5y68p5p16h2"))))
     (build-system python-build-system)
     (arguments
-     ;; The tests are broken upstream.
-     '(#:tests? #f))
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'patch-tests
+           (lambda _
+             (substitute* "pkginfo/tests/test_installed.py"
+               (("test_ctor_w_package_no_PKG_INFO")
+                "_test_ctor_w_package_no_PKG_INFO"))
+             #t)))))
     (home-page
       "https://code.launchpad.net/~tseaver/pkginfo/trunk";)
     (synopsis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]