From c226d12856bffbf0ba233be087dd4a0b6f9bfc4d Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 3 May 2024 11:54:36 +0200 Subject: gnu: python-scikit-learn-extra: Disable a validation test. * gnu/packages/machine-learning.scm (python-scikit-learn-extra)[arguments]: Disable one test. Change-Id: I1309cb6a82dee1a714ddec59aa90692ccfcd885b --- gnu/packages/machine-learning.scm | 42 +++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 19 deletions(-) (limited to 'gnu/packages/machine-learning.scm') diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 39b3a36b65..7ff8c098b1 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -1762,26 +1762,30 @@ data analysis.") #:test-flags ;; ignore tests that require network '(list "--pyargs" "sklearn_extra" - "-k" "not test_build") + "-k" (string-append "not test_build" + ;; The error message format has changed, + ;; but the behavior itself is still the + ;; same. + " and not test_parameter_validation")) #:phases - #~(modify-phases %standard-phases - (add-after 'build 'build-ext - (lambda _ - (invoke "python" "setup.py" "build_ext" - "--inplace"))) - (replace 'check - (lambda* (#:key tests? test-flags #:allow-other-keys) - (when tests? - ;; Restrict OpenBLAS threads to prevent segfaults while testing! - (setenv "OPENBLAS_NUM_THREADS" "1") - - ;; Some tests require write access to $HOME. - (setenv "HOME" "/tmp") - - ;; Step out of the source directory to avoid interference; - ;; we want to run the installed code with extensions etc. - (with-directory-excursion "/tmp" - (apply invoke "pytest" "-vv" test-flags)))))))) + #~(modify-phases %standard-phases + (add-after 'build 'build-ext + (lambda _ + (invoke "python" "setup.py" "build_ext" + "--inplace"))) + (replace 'check + (lambda* (#:key tests? test-flags #:allow-other-keys) + (when tests? + ;; Restrict OpenBLAS threads to prevent segfaults while testing! + (setenv "OPENBLAS_NUM_THREADS" "1") + + ;; Some tests require write access to $HOME. + (setenv "HOME" "/tmp") + + ;; Step out of the source directory to avoid interference; + ;; we want to run the installed code with extensions etc. + (with-directory-excursion "/tmp" + (apply invoke "pytest" "-vv" test-flags)))))))) (propagated-inputs (list python-numpy python-scikit-learn -- cgit v1.2.3