summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-04-09 12:46:42 +0200
committerMichał Górny <mgorny@gentoo.org>2019-04-09 12:50:51 +0200
commitffed3ece72bcad0c1d9354ab04e18331afcc2757 (patch)
treefcbacb08946596344340428205225c58ace9fa49 /dev-python/authres
parentdev-python/authres: version bump to 1.1.1 (diff)
downloadgentoo-ffed3ece72bcad0c1d9354ab04e18331afcc2757.tar.gz
gentoo-ffed3ece72bcad0c1d9354ab04e18331afcc2757.tar.bz2
gentoo-ffed3ece72bcad0c1d9354ab04e18331afcc2757.zip
dev-python/authres: Simplify test phase
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/authres')
-rw-r--r--dev-python/authres/authres-1.1.1.ebuild4
1 files changed, 2 insertions, 2 deletions
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}"
}