guix-commits
[Top][All Lists]
Advanced

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

06/09: gnu: python-keyring: Make tests skippable.


From: guix-commits
Subject: 06/09: gnu: python-keyring: Make tests skippable.
Date: Mon, 15 Feb 2021 04:37:57 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit f7c966ae02b4915d968b8f9769c506b1c77a17ff
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Feb 14 14:19:21 2021 +0200

    gnu: python-keyring: Make tests skippable.
    
    * gnu/packages/python-crypto.scm (python-keyring)[arguments]: In custom
    'check phase only run tests when tests? is #true.
---
 gnu/packages/python-crypto.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 9739de1..bf39f12 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -382,8 +382,10 @@ do what is needed for client/server Kerberos 
authentication based on
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (invoke "pytest"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "pytest"))
+             #t)))))
     (native-inputs
      `(("python-toml" ,python-toml)
        ("python-pytest" ,python-pytest)



reply via email to

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