From: Michał Górny Date: Tue, 16 May 2017 21:29:11 +0000 (+0200) Subject: dev-python/pylint: Fix running *all* tests X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=34396b1ad6869575590491764fa764785b05ff44;p=gentoo.git dev-python/pylint: Fix running *all* tests --- diff --git a/dev-python/pylint/pylint-1.7.1-r1.ebuild b/dev-python/pylint/pylint-1.7.1-r1.ebuild index 61bf81a92620..a26d98dcba57 100644 --- a/dev-python/pylint/pylint-1.7.1-r1.ebuild +++ b/dev-python/pylint/pylint-1.7.1-r1.ebuild @@ -31,7 +31,8 @@ RDEPEND=" dev-python/configparser[${PYTHON_USEDEP}]' -2)" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( ${RDEPEND} )" + test? ( ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] )" python_compile_all() { # selection of straight html triggers a trivial annoying bug, we skirt it @@ -39,10 +40,7 @@ python_compile_all() { } python_test() { - ${EPYTHON} \ - -m unittest discover \ - -s pylint/test/ -p "*test_*".py \ - --verbose || die + py.test -v || die "Tests fail with ${EPYTHON}" } python_install_all() {