1 |
commit: a64a4aab877c0ba0c5d4cf7848ed2d29037c77af |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 15 06:33:22 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 15 08:37:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a64a4aab |
7 |
|
8 |
dev-python/hyperframe: Enable tests |
9 |
|
10 |
dev-python/hyperframe/hyperframe-5.1.0.ebuild | 10 +++++++--- |
11 |
1 file changed, 7 insertions(+), 3 deletions(-) |
12 |
|
13 |
diff --git a/dev-python/hyperframe/hyperframe-5.1.0.ebuild b/dev-python/hyperframe/hyperframe-5.1.0.ebuild |
14 |
index e25f3675981..0486a63f174 100644 |
15 |
--- a/dev-python/hyperframe/hyperframe-5.1.0.ebuild |
16 |
+++ b/dev-python/hyperframe/hyperframe-5.1.0.ebuild |
17 |
@@ -13,7 +13,11 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
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 |
-DEPEND="" |
26 |
-RDEPEND="${DEPEND}" |
27 |
+DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
28 |
+ |
29 |
+python_test() { |
30 |
+ py.test -vv hyperframe test || die "Tests fail with ${EPYTHON}" |
31 |
+} |