commit:     f0ffb57ff246dd6a54b496caebfb084e689e0d17
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  8 09:24:01 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Jan  8 09:24:15 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0ffb57f

dev-python/isodate: restructure tests.

Package-Manager: portage-2.3.0

 dev-python/isodate/isodate-0.5.1.ebuild | 17 +++++++++--------
 dev-python/isodate/isodate-0.5.4.ebuild | 17 +++++++++--------
 2 files changed, 18 insertions(+), 16 deletions(-)

diff --git a/dev-python/isodate/isodate-0.5.1.ebuild 
b/dev-python/isodate/isodate-0.5.1.ebuild
index bcd182c..66864f9 100644
--- a/dev-python/isodate/isodate-0.5.1.ebuild
+++ b/dev-python/isodate/isodate-0.5.1.ebuild
@@ -20,14 +20,15 @@ IUSE=""
 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
 
 python_test() {
-       local test
-       pushd "${BUILD_DIR}"/lib/
-       for test in ${PN}/tests/test_*.py
-       do
-               if ! "${PYTHON}" $test; then
-                       die "Test $test failed under ${EPYTHON}"
+       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 ""
+
+       # Give some order to the output salad.
+       einfo "Testsuite passed under ${EPYTHON}";
+       einfo ""
 }

diff --git a/dev-python/isodate/isodate-0.5.4.ebuild 
b/dev-python/isodate/isodate-0.5.4.ebuild
index a9e5d81..f5351b0 100644
--- a/dev-python/isodate/isodate-0.5.4.ebuild
+++ b/dev-python/isodate/isodate-0.5.4.ebuild
@@ -20,14 +20,15 @@ IUSE=""
 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
 
 python_test() {
-       local test
-       pushd "${BUILD_DIR}"/lib/
-       for test in ${PN}/tests/test_*.py
-       do
-               if ! "${PYTHON}" $test; then
-                       die "Test $test failed under ${EPYTHON}"
+       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 ""
+
+       # Give some order to the output salad.
+       einfo "Testsuite passed under ${EPYTHON}";
+       einfo ""
 }

Reply via email to