guix-commits
[Top][All Lists]
Advanced

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

13/15: gnu: python-dask: Run tests conditionally.


From: guix-commits
Subject: 13/15: gnu: python-dask: Run tests conditionally.
Date: Tue, 7 Dec 2021 07:18:31 -0500 (EST)

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

commit ed15986a32c304133c20a75d12b8fe14b441250e
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Dec 7 13:07:23 2021 +0100

    gnu: python-dask: Run tests conditionally.
    
    * gnu/packages/python-xyz.scm (python-dask)[arguments]: Respect TESTS? 
option.
---
 gnu/packages/python-xyz.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8aee335..70bc458 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22764,7 +22764,8 @@ decisions with any given backend.")
                 (string-append "@pytest.mark.skip(reason=\"Disabled by 
Guix\")\n"
                                m)))))
          (replace 'check
-           (lambda _ (invoke "pytest" "-vv"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests? (invoke "pytest" "-vv")))))))
     (propagated-inputs
      `(("python-cloudpickle" ,python-cloudpickle)
        ("python-fsspec" ,python-fsspec)



reply via email to

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