gnu: python-keras: Skip a flaky test.

* gnu/packages/machine-learning.scm (python-keras)
[phases]{check}: Also skip the test_stateful_metrics test.
This commit is contained in:
Maxim Cournoyer 2021-10-11 23:42:40 -04:00
parent 62b44b0b4e
commit 8e0a8819b7
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -16,7 +16,7 @@
;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net> ;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com> ;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net> ;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -2561,9 +2561,14 @@ (define-public python-keras
"-p" "no:pep8" "-p" "no:pep8"
;; FIXME: python-build-system lacks PARALLEL-TESTS? ;; FIXME: python-build-system lacks PARALLEL-TESTS?
"-n" (number->string (parallel-job-count)) "-n" (number->string (parallel-job-count))
;; The following test fail only in the build container; "-k"
;; skip it. (string-append
"-k" "not test_selu"))))))) ;; The following test fails only in the build
;; container; skip it.
"not test_selu "
;; The following test was found flaky and removed in
;; recent versions.
"and not test_stateful_metrics"))))))))
(propagated-inputs (propagated-inputs
`(("python-h5py" ,python-h5py) `(("python-h5py" ,python-h5py)
("python-keras-applications" ,python-keras-applications) ("python-keras-applications" ,python-keras-applications)