dev-python/authres: Simplify test phase
authorMichał Górny <mgorny@gentoo.org>
Tue, 9 Apr 2019 10:46:42 +0000 (12:46 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 9 Apr 2019 10:50:51 +0000 (12:50 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/authres/authres-1.1.1.ebuild

index 0823667ce45774d27a1361b0f7d743a9fb5e3405..9beb27ee9cfe08a4df806ad30477a9583087b709 100644 (file)
@@ -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}"
 }