commit:     461bae148b89b8b87907246d6136d622763cf36a
Author:     Justin Bronder <jsbronder <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  5 20:56:12 2017 +0000
Commit:     Justin Bronder <jsbronder <AT> gentoo <DOT> org>
CommitDate: Sat Aug  5 20:56:12 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=461bae14

dev-python/sabyenc: fix tests

Fixes #623378

Package-Manager: Portage-2.3.5, Repoman-2.3.1

 dev-python/sabyenc/sabyenc-3.0.2.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-python/sabyenc/sabyenc-3.0.2.ebuild 
b/dev-python/sabyenc/sabyenc-3.0.2.ebuild
index 4122aa0122f..06578573af9 100644
--- a/dev-python/sabyenc/sabyenc-3.0.2.ebuild
+++ b/dev-python/sabyenc/sabyenc-3.0.2.ebuild
@@ -13,12 +13,15 @@ SRC_URI="https://github.com/sabnzbd/${PN}/tarball/v${PV} -> 
${P}.tar.gz"
 LICENSE="LGPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="test"
+
+DEPEND="
+       test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
 
 # Remove forced CFLAG on setup.py
 PATCHES=( "${FILESDIR}"/0001-remove-hardcoded-cflags.patch )
 DOCS=( CHANGES.md README.md doc/yenc-draft.1.3.txt )
 
 python_test() {
-       "${PYTHON}" test/test.py || die "Test failed."
+       pytest -v || die "Test failed."
 }

Reply via email to