commit:     8e085e8e1a75a723714f6aab481d316aac90a885
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed May 26 10:59:26 2021 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Wed May 26 10:59:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8e085e8e

www-client/woob: skip failing test

Closes: https://bugs.gentoo.org/792213
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 www-client/woob/woob-3.0-r1.ebuild | 11 ++++++-----
 www-client/woob/woob-9999.ebuild   | 11 ++++++-----
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/www-client/woob/woob-3.0-r1.ebuild 
b/www-client/woob/woob-3.0-r1.ebuild
index b0535df1d..51f6d0707 100644
--- a/www-client/woob/woob-3.0-r1.ebuild
+++ b/www-client/woob/woob-3.0-r1.ebuild
@@ -42,19 +42,20 @@ RDEPEND="
        dev-python/termcolor[${PYTHON_USEDEP}]
        dev-python/unidecode[${PYTHON_USEDEP}]
 "
-DEPEND="${RDEPEND}"
+BDEPEND="test? ( ${RDEPEND} )"
 
 distutils_enable_tests nose
 
 distutils_enable_sphinx docs/source
 
-src_prepare() {
-       default
-
+python_prepare_all() {
        sed -i \
                -e '/woob.browser.browsers,/d' \
                -e '/woob.browser.pages,/d' \
-               setup.cfg || die "Failed removing network-dependent tests"
+               -e '/woob.tools.application.formatters.table,/d' \
+               setup.cfg || die
+
+       distutils-r1_python_prepare_all
 }
 
 python_install_all() {

diff --git a/www-client/woob/woob-9999.ebuild b/www-client/woob/woob-9999.ebuild
index b0535df1d..51f6d0707 100644
--- a/www-client/woob/woob-9999.ebuild
+++ b/www-client/woob/woob-9999.ebuild
@@ -42,19 +42,20 @@ RDEPEND="
        dev-python/termcolor[${PYTHON_USEDEP}]
        dev-python/unidecode[${PYTHON_USEDEP}]
 "
-DEPEND="${RDEPEND}"
+BDEPEND="test? ( ${RDEPEND} )"
 
 distutils_enable_tests nose
 
 distutils_enable_sphinx docs/source
 
-src_prepare() {
-       default
-
+python_prepare_all() {
        sed -i \
                -e '/woob.browser.browsers,/d' \
                -e '/woob.browser.pages,/d' \
-               setup.cfg || die "Failed removing network-dependent tests"
+               -e '/woob.tools.application.formatters.table,/d' \
+               setup.cfg || die
+
+       distutils-r1_python_prepare_all
 }
 
 python_install_all() {

Reply via email to