commit: 25fd93ce2111855803273620fe13736feebccf85
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 14 21:29:14 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun 14 21:29:50 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25fd93ce
dev-python/statsmodels: Fix tests
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/statsmodels/statsmodels-0.11.1.ebuild | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dev-python/statsmodels/statsmodels-0.11.1.ebuild
b/dev-python/statsmodels/statsmodels-0.11.1.ebuild
index 8f3673a9e7e..1e97a2638b1 100644
--- a/dev-python/statsmodels/statsmodels-0.11.1.ebuild
+++ b/dev-python/statsmodels/statsmodels-0.11.1.ebuild
@@ -59,12 +59,19 @@ python_prepare_all() {
export VARTEXFONTS="${T}"/fonts
export MPLCONFIGDIR="${T}"
printf -- 'backend : Agg\n' > "${MPLCONFIGDIR}"/matplotlibrc || die
+
+ # these tests require internet
+ sed -i -e 's:test_results_on_the:_&:' \
+ statsmodels/stats/tests/test_dist_dependant_measures.py || die
+
distutils-r1_python_prepare_all
}
python_test() {
pushd "${BUILD_DIR}" >/dev/null || die
- "${EPYTHON}" -c 'import statsmodels; statsmodels.test()' \
+ "${EPYTHON}" -c '
+import statsmodels
+statsmodels.test(extra_args=["-vv"], exit=True)' \
|| die "tests fail with ${EPYTHON}"
popd >/dev/null || die
}