dev-python/pylint: Fix running *all* tests
authorMichał Górny <mgorny@gentoo.org>
Tue, 16 May 2017 21:29:11 +0000 (23:29 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 16 May 2017 21:39:48 +0000 (23:39 +0200)
dev-python/pylint/pylint-1.7.1-r1.ebuild

index 61bf81a92620412761704e813d58fece87bd3648..a26d98dcba5725d927bb4686c6e412f458085a79 100644 (file)
@@ -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() {