Gentoo Archives: gentoo-commits

From: Justin Bronder <jsbronder@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sabyenc/
Date: Sat, 05 Aug 2017 20:56:57
Message-Id: 1501966572.461bae148b89b8b87907246d6136d622763cf36a.jsbronder@gentoo
1 commit: 461bae148b89b8b87907246d6136d622763cf36a
2 Author: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 5 20:56:12 2017 +0000
4 Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 5 20:56:12 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=461bae14
7
8 dev-python/sabyenc: fix tests
9
10 Fixes #623378
11
12 Package-Manager: Portage-2.3.5, Repoman-2.3.1
13
14 dev-python/sabyenc/sabyenc-3.0.2.ebuild | 7 +++++--
15 1 file changed, 5 insertions(+), 2 deletions(-)
16
17 diff --git a/dev-python/sabyenc/sabyenc-3.0.2.ebuild b/dev-python/sabyenc/sabyenc-3.0.2.ebuild
18 index 4122aa0122f..06578573af9 100644
19 --- a/dev-python/sabyenc/sabyenc-3.0.2.ebuild
20 +++ b/dev-python/sabyenc/sabyenc-3.0.2.ebuild
21 @@ -13,12 +13,15 @@ SRC_URI="https://github.com/sabnzbd/${PN}/tarball/v${PV} -> ${P}.tar.gz"
22 LICENSE="LGPL-3"
23 SLOT="0"
24 KEYWORDS="~amd64 ~x86"
25 -IUSE=""
26 +IUSE="test"
27 +
28 +DEPEND="
29 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
30
31 # Remove forced CFLAG on setup.py
32 PATCHES=( "${FILESDIR}"/0001-remove-hardcoded-cflags.patch )
33 DOCS=( CHANGES.md README.md doc/yenc-draft.1.3.txt )
34
35 python_test() {
36 - "${PYTHON}" test/test.py || die "Test failed."
37 + pytest -v || die "Test failed."
38 }