[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 14:52:57 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit 34fd1abac1d580693e86026671ba56128b492491
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")
- 06/47: gnu: meson-python: Update to 0.15.0., (continued)
- 06/47: gnu: meson-python: Update to 0.15.0., guix-commits, 2024/01/10
- 09/47: gnu: python-lazy-loader: Update to 0.3., guix-commits, 2024/01/10
- 04/47: gnu: Add python-pyproject-metadata-0.7., guix-commits, 2024/01/10
- 05/47: gnu: Add python-pydevtool., guix-commits, 2024/01/10
- 08/47: gnu: python-tifffile: Update to 2023.12.9., guix-commits, 2024/01/10
- 13/47: gnu: python-pypng: Update to 0.20220715.0., guix-commits, 2024/01/10
- 14/47: gnu: python-matplotx: Disable test_png test., guix-commits, 2024/01/10
- 20/47: gnu: Add python-contourpy., guix-commits, 2024/01/10
- 21/47: gnu: python-matplotlib: Update to 3.8.2., guix-commits, 2024/01/10
- 24/47: gnu: python-scanpy: Update to 1.9.6., guix-commits, 2024/01/10
- 25/47: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests.,
guix-commits <=
- 27/47: gnu: python-captum: Update to 0.7.0., guix-commits, 2024/01/10
- 22/47: gnu: python-seaborn: Update to 0.13.1., guix-commits, 2024/01/10
- 29/47: gnu: python-pyani: Disable tests., guix-commits, 2024/01/10
- 32/47: gnu: cnvkit: Update to 0.9.10., guix-commits, 2024/01/10
- 33/47: gnu: python-plastid: Update to 0.6.1., guix-commits, 2024/01/10
- 34/47: gnu: python-cooler: Update to 0.9.1., guix-commits, 2024/01/10
- 35/47: gnu: python-pint: Update to 0.23., guix-commits, 2024/01/10
- 42/47: gnu: python-hicexplorer: Make compatible with latest scipy., 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