commit: 98c9cbc46b8f0275b8381516a706cced883044c4
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 9 11:16:52 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Nov 9 11:49:41 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98c9cbc4
dev-python/pytest-cov: Add tests
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
dev-python/pytest-cov/pytest-cov-2.2.0.ebuild | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/dev-python/pytest-cov/pytest-cov-2.2.0.ebuild
b/dev-python/pytest-cov/pytest-cov-2.2.0.ebuild
index be7bf3c..a6fa556 100644
--- a/dev-python/pytest-cov/pytest-cov-2.2.0.ebuild
+++ b/dev-python/pytest-cov/pytest-cov-2.2.0.ebuild
@@ -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
}