dev-python/isodate: fix test phase

Bug: https://bugs.gentoo.org/607184
Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69
This commit is contained in:
Mike Gilbert
2017-06-03 10:56:29 -04:00
parent c7f0b12f5a
commit f74016da86

View File

@@ -19,15 +19,5 @@ IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
python_test() {
local testfile
pushd "${BUILD_DIR}"/lib/ || die
for test in ${PN}/tests/test_*.py; do
if ! "${PYTHON}" "${testfile}"; then
die "Test ${testfile} failed under ${EPYTHON}"
fi
done
# Give some order to the output salad.
einfo "Testsuite passed under ${EPYTHON}";
einfo ""
${EPYTHON} -m unittest discover -v -s "${BUILD_DIR}/lib" || die "Testing failed with ${EPYTHON}"
}