[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/59: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests
From: |
guix-commits |
Subject: |
24/59: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests. |
Date: |
Tue, 16 Jan 2024 05:24:29 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit bf9e7314e7f5f820f11fb577a074415d4d8653f1
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 f3929db806..7bf8cdb894 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1928,16 +1928,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
@@ -1946,6 +1944,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")
- 25/59: gnu: python-poliastro: Make compatible with latest matplotlib., (continued)
- 25/59: gnu: python-poliastro: Make compatible with latest matplotlib., guix-commits, 2024/01/16
- 27/59: gnu: tadbit: Add missing input., guix-commits, 2024/01/16
- 21/59: gnu: python-seaborn: Update to 0.13.1., guix-commits, 2024/01/16
- 45/59: gnu: datasette: Update to 1.0a7., guix-commits, 2024/01/16
- 57/59: gnu: python-clingraph: Update to 1.1.2., guix-commits, 2024/01/16
- 56/59: gnu: python-astroml: Make compatible with recent Matplot and Scipy., guix-commits, 2024/01/16
- 47/59: gnu: python-pandas: Update to 1.5.3., guix-commits, 2024/01/16
- 40/59: gnu: python-hicmatrix: Update to 17.1., guix-commits, 2024/01/16
- 09/59: gnu: python-lazy-loader: Update to 0.3., guix-commits, 2024/01/16
- 19/59: gnu: Add python-contourpy., guix-commits, 2024/01/16
- 24/59: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests.,
guix-commits <=
- 55/59: gnu: python-bbknn: Update to 1.6.0., guix-commits, 2024/01/16
- 48/59: gnu: python-scikit-bio: Update to 0.5.9., guix-commits, 2024/01/16
- 51/59: gnu: python-telomerecat: Disable tests., guix-commits, 2024/01/16
- 54/59: gnu: python-geopandas: Update to 0.14.2., guix-commits, 2024/01/16
- 37/59: gnu: scvelo: Make compatible with latest matplotlib., guix-commits, 2024/01/16
- 20/59: gnu: python-matplotlib: Update to 3.8.2., guix-commits, 2024/01/16
- 42/59: gnu: python-pint: Add missing input., guix-commits, 2024/01/16
- 52/59: gnu: python-xarray: Update to 2023.12.0., guix-commits, 2024/01/16
- 53/59: gnu: python-dask: Propagate click., guix-commits, 2024/01/16
- 50/59: gnu: python-mysql-connector-python: Defuse time bomb., guix-commits, 2024/01/16