From: Michał Górny Date: Wed, 25 Mar 2020 08:50:30 +0000 (+0100) Subject: dev-python/slimit: Call pytest directly X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3b4a75d0a12e1056b200878914842fb11f27683e;p=gentoo.git dev-python/slimit: Call pytest directly Signed-off-by: Michał Górny --- diff --git a/dev-python/slimit/slimit-0.8.1-r1.ebuild b/dev-python/slimit/slimit-0.8.1-r1.ebuild index ca7d58331ceb..b5af60f39209 100644 --- a/dev-python/slimit/slimit-0.8.1-r1.ebuild +++ b/dev-python/slimit/slimit-0.8.1-r1.ebuild @@ -15,18 +15,13 @@ SRC_URI="https://github.com/rspivak/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND="dev-python/ply:=[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-runner[${PYTHON_USEDEP}] - )" PATCHES=( "${FILESDIR}/${P}-fix-python3.patch" ) +distutils_enable_tests pytest + python_compile() { distutils-r1_python_compile @@ -39,5 +34,5 @@ python_compile() { } python_test() { - esetup.py pytest --addopts "${BUILD_DIR}" || die "Testing failed with ${EPYTHON}" + pytest -vv "${BUILD_DIR}" || die "Tests failed with ${EPYTHON}" }