From 3b4a75d0a12e1056b200878914842fb11f27683e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 25 Mar 2020 09:50:30 +0100 Subject: [PATCH] dev-python/slimit: Call pytest directly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/slimit/slimit-0.8.1-r1.ebuild | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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}" } -- 2.26.2