dev-python/isodate: fix test phase
authorMike Gilbert <floppym@gentoo.org>
Sat, 3 Jun 2017 14:56:29 +0000 (10:56 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 3 Jun 2017 14:57:02 +0000 (10:57 -0400)
Bug: https://bugs.gentoo.org/607184
Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69

dev-python/isodate/isodate-0.5.4.ebuild

index 4fd84aa58322c98fc471e59dacf1c21516f038d0..ceb2cf0a72a5460cd9f286fcb4c68be06c9e9749 100644 (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}"
 }