dev-python/pyopenssl: use pytest collector

Also disable test_set_default_verify_paths, which requires network
access.

Bug: https://bugs.gentoo.org/601332
Package-Manager: Portage-2.3.3_p56, Repoman-2.3.1_p49
This commit is contained in:
Mike Gilbert
2017-02-19 12:44:28 -05:00
parent 14d0fb0e97
commit 5c5eb3f808

View File

@@ -36,13 +36,19 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${MY_P}
python_prepare_all() {
# Requires network access
sed -i -e 's/test_set_default_verify_paths/_&/' tests/test_ssl.py || die
distutils-r1_python_prepare_all
}
python_compile_all() {
use doc && emake -C doc html
}
python_test() {
# FIXME: for some reason, no-ops on PyPy
esetup.py test
py.test -v || die "Testing failed with ${EPYTHON}"
}
python_install_all() {