guix-commits
[Top][All Lists]
Advanced

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

12/15: gnu: python-s3transfer: Honor #:tests? flag.


From: guix-commits
Subject: 12/15: gnu: python-s3transfer: Honor #:tests? flag.
Date: Sat, 11 Dec 2021 18:29:32 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 9660c2f158f296dc162fd08d08c770095a102b2a
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Fri Nov 5 01:58:33 2021 +0000

    gnu: python-s3transfer: Honor #:tests? flag.
    
    * gnu/packages/python-web.scm (python-s3transfer)[arguments]: Adjust custom
    'check phase to honor the #:tests? flag.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 gnu/packages/python-web.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8ad43b8..9e7d411 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3426,10 +3426,11 @@ Betamax that may possibly end up in the main package.")
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             ;; Some of the 'integration' tests require network access or
-             ;; login credentials.
-             (invoke "nosetests" "--exclude=integration"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               ;; Some of the 'integration' tests require network access or
+               ;; login credentials.
+               (invoke "nosetests" "--exclude=integration")))))))
     (native-inputs
      `(("python-docutils" ,python-docutils)
        ("python-mock" ,python-mock)



reply via email to

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