guix-commits
[Top][All Lists]
Advanced

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

08/13: gnu: python-daemon: Fix test failure.


From: guix-commits
Subject: 08/13: gnu: python-daemon: Fix test failure.
Date: Thu, 16 Dec 2021 16:23:13 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 83651eef15bbdecd35b90c49de6d8476d70655a5
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu Dec 16 11:44:59 2021 +0100

    gnu: python-daemon: Fix test failure.
    
    * gnu/packages/python-xyz.scm (python-daemon)[arguments]: Patch one test &
    remove trailing #t.
---
 gnu/packages/python-xyz.scm | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5e26fe7..8d34ea2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4055,13 +4055,17 @@ logging and tracing of the execution.")
     (arguments
      `(#:phases
        (modify-phases %standard-phases
-         (add-before 'check 'disable-tests
+         (add-before 'check 'adjust-tests
            (lambda _
+             ;; Drop use of testtools.helpers.safe_hasattr which has
+             ;; been removed in favor of hasattr.
+             (substitute* "test/test_metadata.py"
+               (("testtools\\.helpers\\.safe_hasattr")
+                "hasattr"))
              ;; FIXME: Determine why test fails
              (substitute* "test/test_daemon.py"
                (("test_detaches_process_context")
-                "skip_test_detaches_process_context"))
-             #t)))))
+                "skip_test_detaches_process_context")))))))
     (propagated-inputs
      (list python-lockfile))
     (native-inputs



reply via email to

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