Use 'setup.py nosetests' to run tests, as defined in tox.ini. This
solves the problem of nosetests attempting to import files that fail to
import by design.
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/nose[${PYTHON_USEDEP}]
- >=dev-python/nose-exclude-0.1.9[${PYTHON_USEDEP}] )
- "
+ >=dev-python/nose-exclude-0.1.9[${PYTHON_USEDEP}] )"
python_test() {
- nosetests || die "Tests fail with ${EPYTHON}"
+ esetup.py nosetests
}