Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hyper-h2/
Date: Sun, 15 Jul 2018 08:38:01
Message-Id: 1531643870.7883320f6f37eb5af296acee250a7e557eda8f35.mgorny@gentoo
1 commit: 7883320f6f37eb5af296acee250a7e557eda8f35
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 15 06:43:22 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 15 08:37:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7883320f
7
8 dev-python/hyper-h2: Enable tests
9
10 dev-python/hyper-h2/hyper-h2-3.0.1.ebuild | 11 ++++++++++-
11 1 file changed, 10 insertions(+), 1 deletion(-)
12
13 diff --git a/dev-python/hyper-h2/hyper-h2-3.0.1.ebuild b/dev-python/hyper-h2/hyper-h2-3.0.1.ebuild
14 index 9bf1fd6ffd1..0c67c2fa3c2 100644
15 --- a/dev-python/hyper-h2/hyper-h2-3.0.1.ebuild
16 +++ b/dev-python/hyper-h2/hyper-h2-3.0.1.ebuild
17 @@ -13,7 +13,8 @@ SRC_URI="https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar
18 LICENSE="MIT"
19 SLOT="0"
20 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
21 -IUSE=""
22 +IUSE="test"
23 +RESTRICT="!test? ( test )"
24
25 RDEPEND="
26 >=dev-python/hyperframe-5.0.0[${PYTHON_USEDEP}]
27 @@ -24,4 +25,12 @@ RDEPEND="
28 $(python_gen_cond_dep '<dev-python/enum34-2.0.0[${PYTHON_USEDEP}]' python2_7)
29 "
30 DEPEND="${RDEPEND}
31 + test? (
32 + dev-python/hypothesis[${PYTHON_USEDEP}]
33 + dev-python/pytest[${PYTHON_USEDEP}]
34 + )
35 "
36 +
37 +python_test() {
38 + pytest -vv test || die "Tests fail with ${EPYTHON}"
39 +}