guix-patches
[Top][All Lists]
Advanced

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

[bug#46228] [PATCH 2/2] gnu: python-pkginfo: Enable tests.


From: Tanguy Le Carrour
Subject: [bug#46228] [PATCH 2/2] gnu: python-pkginfo: Enable tests.
Date: Mon, 1 Feb 2021 09:52:31 +0100

* gnu/packages/python-xyz.scm (python-pkginfo)[arguments]: Don't disable tests.
Disable a failing test.
---
 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 29f66705e4..38dbda25d8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17113,8 +17113,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
-- 
2.30.0






reply via email to

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