From: Michał Górny Date: Tue, 9 Apr 2019 10:46:42 +0000 (+0200) Subject: dev-python/authres: Simplify test phase X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ffed3ece72bcad0c1d9354ab04e18331afcc2757;p=gentoo.git dev-python/authres: Simplify test phase Signed-off-by: Michał Górny --- diff --git a/dev-python/authres/authres-1.1.1.ebuild b/dev-python/authres/authres-1.1.1.ebuild index 0823667ce457..9beb27ee9cfe 100644 --- a/dev-python/authres/authres-1.1.1.ebuild +++ b/dev-python/authres/authres-1.1.1.ebuild @@ -16,6 +16,6 @@ SLOT="0" IUSE="" python_test() { - "${PYTHON}" -c "import sys, authres, doctest; f, t = doctest.testfile('authres/tests'); \ - sys.exit(bool(f))" || die "Tests fail with ${EPYTHON}" + "${EPYTHON}" -m doctest -v authres/tests || + die "Tests fail with ${EPYTHON}" }