diff options
Diffstat (limited to 'dev-python/hyperframe/hyperframe-5.1.0.ebuild')
| -rw-r--r-- | dev-python/hyperframe/hyperframe-5.1.0.ebuild | 10 |
1 files 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 e25f36759814..0486a63f174e 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}" +} |
