dev-python/venusian: Fix running tests
authorMichał Górny <mgorny@gentoo.org>
Wed, 26 Apr 2017 15:53:52 +0000 (17:53 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 26 Apr 2017 16:33:59 +0000 (18:33 +0200)
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.

dev-python/venusian/venusian-1.0.ebuild

index c47432880160667cffb09970ee94364c61dd5854..512b8aec4726f2997506b18a964ddced92437ec9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -22,9 +22,8 @@ RDEPEND="
 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
 }