mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 10:58:21 -07:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user