sci-libs/scipy: Correct tests to not fail on warning
authorJustin Lecher <jlec@gentoo.org>
Sat, 31 Oct 2015 10:20:09 +0000 (11:20 +0100)
committerJustin Lecher <jlec@gentoo.org>
Sat, 31 Oct 2015 10:25:52 +0000 (11:25 +0100)
Github: scipy/scipy#5426

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
sci-libs/scipy/scipy-0.16.1.ebuild

index de2289b7e7737dc57796b963a882197e8c510f58..07d973074f97ff241c7f809063d1a940467bfad4 100644 (file)
@@ -119,9 +119,13 @@ python_test() {
        "${PYTHON}" -c \
                'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \
                || die
+       # https://github.com/scipy/scipy/issues/5426
        "${EPYTHON}" -c \
-               "import scipy, sys; r = scipy.test('fast',verbose=2); sys.exit(0 if r.wasSuccessful() else 1)" \
+               "import scipy, sys; r = scipy.test('fast', verbose=2, raise_warnings='release'); sys.exit(0 if r.wasSuccessful() else 1)" \
                || die "Tests fail with ${EPYTHON}"
+#      "${EPYTHON}" -c \
+#              "import scipy, sys; r = scipy.test('fast',verbose=2); sys.exit(0 if r.wasSuccessful() else 1)" \
+#              || die "Tests fail with ${EPYTHON}"
 }
 
 python_install_all() {