guix-commits
[Top][All Lists]
Advanced

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

09/21: gnu: python-markupsafe: Honor #:tests in check phase.


From: guix-commits
Subject: 09/21: gnu: python-markupsafe: Honor #:tests in check phase.
Date: Mon, 9 Aug 2021 08:29:06 -0400 (EDT)

efraim pushed a commit to branch core-updates-frozen
in repository guix.

commit 70833c2ec8b200dbc704b93ff17d78a1e3cc1eed
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Aug 9 13:51:30 2021 +0300

    gnu: python-markupsafe: Honor #:tests in check phase.
    
    * gnu/pacakges/python-xyz.scm (python-markupsafe)[arguments]: Honor #:tests 
flag.
---
 gnu/packages/python-xyz.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 611451e..848efb2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3757,8 +3757,9 @@ e.g. filters, callbacks and errbacks can all be 
promises.")
     (arguments
      `(#:phases (modify-phases %standard-phases
                   (replace 'check
-                    (lambda _
-                      (invoke "pytest" "-vv"))))))
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (invoke "pytest" "-vv")))))))
     (native-inputs
      `(("python-pytest" ,python-pytest)))
     (home-page "https://github.com/mitsuhiko/markupsafe";)



reply via email to

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