[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/53: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests
From: |
guix-commits |
Subject: |
24/53: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests. |
Date: |
Thu, 11 Jan 2024 09:43:00 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit 6a45f12ecbc1e41887646d7d68ca544f1e6c752f
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 2ae97505fb..ac1233a554 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1995,16 +1995,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
@@ -2013,6 +2011,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")
- branch wip-python-science created (now 50b7ea64ee), guix-commits, 2024/01/11
- 05/53: gnu: Add python-pydevtool., guix-commits, 2024/01/11
- 06/53: gnu: meson-python: Update to 0.15.0., guix-commits, 2024/01/11
- 25/53: gnu: python-poliastro: Make compatible with latest matplotlib., guix-commits, 2024/01/11
- 33/53: gnu: python-cooler: Update to 0.9.1., guix-commits, 2024/01/11
- 28/53: gnu: python-pyani: Disable tests., guix-commits, 2024/01/11
- 45/53: gnu: datasette: Update to 1.0a7., guix-commits, 2024/01/11
- 49/53: gnu: python-adjusttext: Disable tests., guix-commits, 2024/01/11
- 24/53: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests.,
guix-commits <=
- 22/53: gnu: Add python-pytest-nunit., guix-commits, 2024/01/11
- 20/53: gnu: python-matplotlib: Update to 3.8.2., guix-commits, 2024/01/11
- 09/53: gnu: python-lazy-loader: Update to 0.3., guix-commits, 2024/01/11
- 21/53: gnu: python-seaborn: Update to 0.13.1., guix-commits, 2024/01/11
- 26/53: gnu: python-captum: Update to 0.7.0., guix-commits, 2024/01/11
- 38/53: gnu: python-fit-nbinom: Disable tests., guix-commits, 2024/01/11
- 40/53: gnu: python-hicmatrix: Update to 17.1., guix-commits, 2024/01/11
- 47/53: gnu: python-pandas: Update to 1.5.3., guix-commits, 2024/01/11
- 11/53: gnu: python-scikit-image: Update to 0.22.0., guix-commits, 2024/01/11
- 19/53: gnu: Add python-contourpy., guix-commits, 2024/01/11