commit:     c87ae91060b7888de3577bed3e1ebaea0db21789
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  1 08:23:05 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan  1 08:23:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c87ae910

dev-python/python-utils: Ignore docs when collecting tests

The docs directory does not contain any tests but it triggers import
failures when doc dependencies are not installed.

Closes: https://bugs.gentoo.org/830383
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/python-utils/python-utils-2.7.0.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dev-python/python-utils/python-utils-2.7.0.ebuild 
b/dev-python/python-utils/python-utils-2.7.0.ebuild
index 151ae849531a..325baeedb039 100644
--- a/dev-python/python-utils/python-utils-2.7.0.ebuild
+++ b/dev-python/python-utils/python-utils-2.7.0.ebuild
@@ -18,6 +18,10 @@ RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
 
 distutils_enable_tests pytest
 
+EPYTEST_IGNORE=(
+       docs
+)
+
 python_prepare_all() {
        sed -i -e '/--cov/d' -e '/--flake8/d' pytest.ini || die
        distutils-r1_python_prepare_all

Reply via email to