[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/47: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests
From: |
guix-commits |
Subject: |
25/47: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests. |
Date: |
Wed, 10 Jan 2024 13:53:23 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit 7dbc3143118f3713144197884351088c54627d48
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")
- 03/47: gnu: python-doit: Update to 0.36.0., (continued)
- 03/47: gnu: python-doit: Update to 0.36.0., guix-commits, 2024/01/10
- 10/47: gnu: python-imageio: Update to 2.33.1., guix-commits, 2024/01/10
- 40/47: gnu: python-scikit-optimize: Make compatible with latest sklearn., guix-commits, 2024/01/10
- 45/47: gnu: Add python-asyncinject., guix-commits, 2024/01/10
- 14/47: gnu: python-matplotx: Disable test_png test., guix-commits, 2024/01/10
- 16/47: gnu: python-pynndescent: Update to 0.5.11., guix-commits, 2024/01/10
- 38/47: gnu: scvelo: Make compatible with latest matplotlib., guix-commits, 2024/01/10
- 19/47: gnu: python-kiwisolver: Update to 1.4.5., guix-commits, 2024/01/10
- 44/47: gnu: python-metpy: Update to 1.6.0., guix-commits, 2024/01/10
- 31/47: gnu: python-reportlab: Update to 4.0.8., guix-commits, 2024/01/10
- 25/47: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests.,
guix-commits <=
- 02/47: gnu: Add pybind11-2.10., guix-commits, 2024/01/10
- 09/47: gnu: python-lazy-loader: Update to 0.3., guix-commits, 2024/01/10
- 12/47: gnu: python-afdko: Disable failing test., guix-commits, 2024/01/10
- 18/47: gnu: Add python-cppy., guix-commits, 2024/01/10
- 15/47: gnu: python-scikit-learn: Update to 1.3.2., guix-commits, 2024/01/10
- 35/47: gnu: python-pint: Update to 0.23., guix-commits, 2024/01/10
- 32/47: gnu: cnvkit: Update to 0.9.10., guix-commits, 2024/01/10
- 41/47: gnu: python-hicmatrix: Update to 17.1., guix-commits, 2024/01/10
- 37/47: gnu: python-cartopy: Update to 0.22.0., guix-commits, 2024/01/10
- 29/47: gnu: python-pyani: Disable tests., guix-commits, 2024/01/10