summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-06-14 23:29:14 +0200
committerMichał Górny <mgorny@gentoo.org>2020-06-14 23:29:50 +0200
commit25fd93ce2111855803273620fe13736feebccf85 (patch)
tree56582334f7f01f99b4b94f27b682738bec64b2a4 /dev-python/statsmodels
parentdev-python/pandas: Unrestrict statsmodels dep (diff)
downloadgentoo-25fd93ce2111855803273620fe13736feebccf85.tar.gz
gentoo-25fd93ce2111855803273620fe13736feebccf85.tar.bz2
gentoo-25fd93ce2111855803273620fe13736feebccf85.zip
dev-python/statsmodels: Fix tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/statsmodels')
-rw-r--r--dev-python/statsmodels/statsmodels-0.11.1.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/dev-python/statsmodels/statsmodels-0.11.1.ebuild b/dev-python/statsmodels/statsmodels-0.11.1.ebuild
index 8f3673a9e7ee..1e97a2638b10 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
}