diff options
author | Mike Gilbert <floppym@gentoo.org> | 2017-02-19 12:44:28 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2017-02-19 12:46:20 -0500 |
commit | 5c5eb3f80881d1fbabd9e0608e171f7d0f22c5f5 (patch) | |
tree | c3932c4d7fc7f3b070102d8d0dd89d74c6d9e92d /dev-python/pyopenssl | |
parent | 14d0fb0e972847b6ca1059a73e0ef59a33756b4a (diff) | |
download | gentoo-5c5eb3f80881d1fbabd9e0608e171f7d0f22c5f5.tar.gz gentoo-5c5eb3f80881d1fbabd9e0608e171f7d0f22c5f5.tar.xz |
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
Diffstat (limited to 'dev-python/pyopenssl')
-rw-r--r-- | dev-python/pyopenssl/pyopenssl-16.2.0.ebuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dev-python/pyopenssl/pyopenssl-16.2.0.ebuild b/dev-python/pyopenssl/pyopenssl-16.2.0.ebuild index 6dba4089ccb..dd4371367c5 100644 --- a/dev-python/pyopenssl/pyopenssl-16.2.0.ebuild +++ b/dev-python/pyopenssl/pyopenssl-16.2.0.ebuild @@ -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() { |