commit:     ebbffbddc263b9dc81fc8081165f2c26dac945f8
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun May 24 19:39:37 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun May 24 19:40:21 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebbffbdd

dev-python/pycparser: skip tests if cpp is not in PATH

Bug: https://bugs.gentoo.org/719934
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 dev-python/pycparser/pycparser-2.20.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev-python/pycparser/pycparser-2.20.ebuild 
b/dev-python/pycparser/pycparser-2.20.ebuild
index 4b222c379ee..12172c1c82e 100644
--- a/dev-python/pycparser/pycparser-2.20.ebuild
+++ b/dev-python/pycparser/pycparser-2.20.ebuild
@@ -41,6 +41,8 @@ python_compile() {
 }
 
 python_test() {
+       # Skip tests if cpp is not in PATH
+       type -P cpp >/dev/null || return 0
        # change workdir to avoid '.' import
        cd tests || die
        "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"

Reply via email to