From 83651eef15bbdecd35b90c49de6d8476d70655a5 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Thu, 16 Dec 2021 11:44:59 +0100 Subject: 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(-) (limited to 'gnu/packages') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5e26fe724f..8d34ea2e1e 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 -- cgit 1.4.1