[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch wip-python-science updated: gnu: python-cleanlab: Disable test_au
From: |
guix-commits |
Subject: |
branch wip-python-science updated: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests. |
Date: |
Tue, 09 Jan 2024 04:35:36 -0500 |
This is an automated email from the git hooks/post-receive script.
rekado pushed a commit to branch wip-python-science
in repository guix.
The following commit(s) were added to refs/heads/wip-python-science by this
push:
new 899138a42d gnu: python-cleanlab: Disable test_aux_inputs, enable other
tests.
899138a42d is described below
commit 899138a42d717310ed0ff3211380f30ba0bc8bee
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Jan 9 10:33:48 2024 +0100
gnu: python-cleanlab: Disable test_aux_inputs, enable other tests.
* gnu/packages/machine-learning.scm (python-cleanlab)[arguments]: Remove
'disable-bad-tests phase and ignore test files in #:test-flags instead;
disable test_aux_inputs test, but re-enable tests from
test_multilabel_classification.py.
[native-inputs]: Add python-pytest-lazy-fixture.
Change-Id: I77a16768ff61215e918c98bccd3efa216fb30d7f
---
gnu/packages/machine-learning.scm | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index 7489f65455..d5f4772352 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1906,16 +1906,14 @@ standard feature selection algorithms.")
(build-system pyproject-build-system)
(arguments
(list
- #:phases
- '(modify-phases %standard-phases
- (add-after 'unpack 'disable-bad-tests
- (lambda _
- ;; XXX This requires pytest lazy_fixture
- (delete-file "tests/test_multilabel_classification.py")
- ;; Requires tensorflow
- (delete-file "tests/test_frameworks.py")
+ #:test-flags
+ ;; This test fails because the newer version of scikit learn returns one
+ ;; more classification result than expected. This should be harmless.
+ '(list "-k" "not test_aux_inputs"
+ ;; Requires Tensorflow
+ "--ignore=tests/test_frameworks.py"
;; Tries to download datasets from the internet at runtime.
- (delete-file "tests/test_dataset.py"))))))
+ "--ignore=tests/test_dataset.py")))
(propagated-inputs
(list python-numpy
python-pandas
@@ -1924,6 +1922,7 @@ standard feature selection algorithms.")
python-tqdm))
(native-inputs
(list python-pytest
+ python-pytest-lazy-fixture
python-pytorch
python-torchvision))
(home-page "https://cleanlab.ai")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch wip-python-science updated: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests.,
guix-commits <=