dev-python/pytest-cov: Add tests
authorJustin Lecher <jlec@gentoo.org>
Mon, 9 Nov 2015 11:16:52 +0000 (12:16 +0100)
committerJustin Lecher <jlec@gentoo.org>
Mon, 9 Nov 2015 11:49:41 +0000 (12:49 +0100)
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/pytest-cov/pytest-cov-2.2.0.ebuild

index be7bf3ce01b43396b412ec175c3dc1d646c4f008..a6fa55638461a6336030cbe69bb4b1b0a86450b3 100644 (file)
@@ -26,12 +26,19 @@ DEPEND="
        test? (
                dev-python/virtualenv[${PYTHON_USEDEP}]
                dev-python/process-tests[${PYTHON_USEDEP}]
-               dev-python/pytest-cache[${PYTHON_USEDEP}]
+               || (
+                       >=dev-python/pytest-2.8.0[${PYTHON_USEDEP}]
+                       dev-python/pytest-cache[${PYTHON_USEDEP}]
+               )
                dev-python/pytest-xdist[${PYTHON_USEDEP}]
                dev-python/pytest-capturelog[${PYTHON_USEDEP}]
                )"
 
+# https://github.com/pytest-dev/pytest-cov/issues/99
+RESTRICT=test
+
 python_test() {
        PYTHONPATH="${S}/tests:${BUILD_DIR}/lib" \
-               py.test -p pytest_cov -vvx || die
+               PYTEST_PLUGINS=pytest_cov \
+               py.test -v -v -x || die
 }