dev-python/rply: Update coding style wrt tests
authorMichał Górny <mgorny@gentoo.org>
Tue, 3 Sep 2019 12:34:34 +0000 (14:34 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 3 Sep 2019 12:40:51 +0000 (14:40 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/rply/rply-0.7.6.ebuild

index 1b9f7c7c55b7979b8fcfbf4baa196a6ba1c88bdd..3499bd15290c73f47f9ee16a9ba7e54c685a9d87 100644 (file)
@@ -15,6 +15,7 @@ LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="test"
+RESTRICT="!test? ( test )"
 
 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
                dev-python/appdirs[${PYTHON_USEDEP}]
@@ -31,5 +32,5 @@ python_prepare() {
 }
 
 python_test() {
-       py.test || die "Tests fail with ${EPYTHON}"
+       pytest -vv || die "Tests fail with ${EPYTHON}"
 }