From a64a4aab877c0ba0c5d4cf7848ed2d29037c77af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 15 Jul 2018 08:33:22 +0200 Subject: [PATCH] dev-python/hyperframe: Enable tests --- dev-python/hyperframe/hyperframe-5.1.0.ebuild | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dev-python/hyperframe/hyperframe-5.1.0.ebuild b/dev-python/hyperframe/hyperframe-5.1.0.ebuild index e25f367598148..0486a63f174ed 100644 --- a/dev-python/hyperframe/hyperframe-5.1.0.ebuild +++ b/dev-python/hyperframe/hyperframe-5.1.0.ebuild @@ -13,7 +13,11 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" -DEPEND="" -RDEPEND="${DEPEND}" +DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +python_test() { + py.test -vv hyperframe test || die "Tests fail with ${EPYTHON}" +}