Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/isodate/
Date: Sat, 03 Jun 2017 14:57:10
Message-Id: 1496501822.f74016da86dedafd7dfcd638322a4cbfc731b119.floppym@gentoo
1 commit: f74016da86dedafd7dfcd638322a4cbfc731b119
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 3 14:56:29 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 3 14:57:02 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f74016da
7
8 dev-python/isodate: fix test phase
9
10 Bug: https://bugs.gentoo.org/607184
11 Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69
12
13 dev-python/isodate/isodate-0.5.4.ebuild | 12 +-----------
14 1 file changed, 1 insertion(+), 11 deletions(-)
15
16 diff --git a/dev-python/isodate/isodate-0.5.4.ebuild b/dev-python/isodate/isodate-0.5.4.ebuild
17 index 4fd84aa5832..ceb2cf0a72a 100644
18 --- a/dev-python/isodate/isodate-0.5.4.ebuild
19 +++ b/dev-python/isodate/isodate-0.5.4.ebuild
20 @@ -19,15 +19,5 @@ IUSE=""
21 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
22
23 python_test() {
24 - local testfile
25 - pushd "${BUILD_DIR}"/lib/ || die
26 - for test in ${PN}/tests/test_*.py; do
27 - if ! "${PYTHON}" "${testfile}"; then
28 - die "Test ${testfile} failed under ${EPYTHON}"
29 - fi
30 - done
31 -
32 - # Give some order to the output salad.
33 - einfo "Testsuite passed under ${EPYTHON}";
34 - einfo ""
35 + ${EPYTHON} -m unittest discover -v -s "${BUILD_DIR}/lib" || die "Testing failed with ${EPYTHON}"
36 }