commit:     7883320f6f37eb5af296acee250a7e557eda8f35
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 15 06:43:22 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 15 08:37:50 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7883320f

dev-python/hyper-h2: Enable tests

 dev-python/hyper-h2/hyper-h2-3.0.1.ebuild | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/dev-python/hyper-h2/hyper-h2-3.0.1.ebuild 
b/dev-python/hyper-h2/hyper-h2-3.0.1.ebuild
index 9bf1fd6ffd1..0c67c2fa3c2 100644
--- a/dev-python/hyper-h2/hyper-h2-3.0.1.ebuild
+++ b/dev-python/hyper-h2/hyper-h2-3.0.1.ebuild
@@ -13,7 +13,8 @@ 
SRC_URI="https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 
~amd64-fbsd"
-IUSE=""
+IUSE="test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
        >=dev-python/hyperframe-5.0.0[${PYTHON_USEDEP}]
@@ -24,4 +25,12 @@ RDEPEND="
        $(python_gen_cond_dep '<dev-python/enum34-2.0.0[${PYTHON_USEDEP}]' 
python2_7)
 "
 DEPEND="${RDEPEND}
+       test? (
+               dev-python/hypothesis[${PYTHON_USEDEP}]
+               dev-python/pytest[${PYTHON_USEDEP}]
+       )
 "
+
+python_test() {
+       pytest -vv test || die "Tests fail with ${EPYTHON}"
+}

Reply via email to