dev-python/authres: Simplify test phase

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2019-04-09 12:46:42 +02:00
parent bc29b87df3
commit ffed3ece72

View 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}"
}