dev-python/cliapp: Fix running tests

This commit is contained in:
Michał Górny
2018-02-24 00:27:32 +01:00
parent ab9af98ada
commit 25d12e7636

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -14,10 +14,7 @@ SRC_URI="http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp/snapshot/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="test"
# test deps not supporting python 3
RESTRICT="test"
IUSE=""
MY_DEPEND="
dev-python/pyyaml[${PYTHON_USEDEP}]
@@ -25,8 +22,6 @@ MY_DEPEND="
DEPEND="${PYTHON_DEPS}
${MY_DEPEND}"
# test? ( >=dev-python/CoverageTestRunner-1.11 dev-python/pep8 )
# "
RDEPEND="
${MY_DEPEND}
@@ -38,5 +33,5 @@ src_test() {
}
python_test() {
${PYTHON} -m CoverageTestRunner --ignore-missing-from=without-tests || die
"${EPYTHON}" -m unittest discover -v -p '*_tests.py' || die
}