commit:     8b62b8d391bc4eccfc6775132c64e5a90fb63a11
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 17 09:08:37 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 17 09:48:19 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b62b8d3

dev-python/pygccxml: skip pycodestyle tests

Closes: https://bugs.gentoo.org/895074
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/pygccxml/pygccxml-2.2.1-r1.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev-python/pygccxml/pygccxml-2.2.1-r1.ebuild 
b/dev-python/pygccxml/pygccxml-2.2.1-r1.ebuild
index 56110eb0d87b..b2466d83a688 100644
--- a/dev-python/pygccxml/pygccxml-2.2.1-r1.ebuild
+++ b/dev-python/pygccxml/pygccxml-2.2.1-r1.ebuild
@@ -23,3 +23,11 @@ DEPEND="${RDEPEND}"
 
 distutils_enable_tests unittest
 distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
+
+python_prepare_all() {
+       # We're not interested in linter tests in Gentoo, needs pycodestyle
+       rm unittests/pep8_tester.py || die
+       sed -i -e '/pep8_tester/d' unittests/test_all.py || die
+
+       distutils-r1_python_prepare_all
+}

Reply via email to