dev-python/nbconvert: Fix test call and dependencies
authorMarius Brehler <marbre@linux.sungazer.de>
Sun, 30 Oct 2016 22:20:51 +0000 (23:20 +0100)
committerDavid Seifert <soap@gentoo.org>
Mon, 31 Oct 2016 08:00:54 +0000 (09:00 +0100)
Gentoo-bug: 597902

Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2700

Signed-off-by: David Seifert <soap@gentoo.org>
dev-python/nbconvert/nbconvert-4.2.0.ebuild

index 15080a03a90c114b39fdb104e46c356a9955e27c..3f6e2a0302cc467e276cb4018a6328c963391ece 100644 (file)
@@ -35,9 +35,11 @@ DEPEND="${RDEPEND}
                app-text/pandoc
        )
        test? (
+               dev-python/pytest[${PYTHON_USEDEP}]
+               dev-python/pytest-cov[${PYTHON_USEDEP}]
                dev-python/nose[${PYTHON_USEDEP}]
-               dev-python/coverage[${PYTHON_USEDEP}]
                dev-python/ipykernel[${PYTHON_USEDEP}]
+               dev-python/testpath[${PYTHON_USEDEP}]
        )
        "
 
@@ -57,7 +59,7 @@ python_compile_all() {
 python_test() {
        distutils_install_for_testing
        cd "${TEST_DIR}"/lib || die
-       nosetests --with-coverage --cover-package=nbconvert nbconvert || die
+       py.test --cov nbconvert -v --pyargs nbconvert || die
 }
 
 python_install_all() {