dev-python/hyper-h2: Enable tests

This commit is contained in:
Michał Górny
2018-07-15 08:43:22 +02:00
parent 6a46b29ef7
commit 7883320f6f

View File

@@ -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}"
}