commit:     d47dae5503def17a99e7bef777a3b4fceeaf5fe6
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 11 15:14:47 2019 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Wed Dec 11 15:26:26 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d47dae55

dev-python/rosdistro: disable tests requiring network access

Closes: https://bugs.gentoo.org/643458
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 dev-python/rosdistro/rosdistro-0.8.0.ebuild | 6 ++++++
 dev-python/rosdistro/rosdistro-9999.ebuild  | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/dev-python/rosdistro/rosdistro-0.8.0.ebuild 
b/dev-python/rosdistro/rosdistro-0.8.0.ebuild
index 5b587a80181..cf60a935e58 100644
--- a/dev-python/rosdistro/rosdistro-0.8.0.ebuild
+++ b/dev-python/rosdistro/rosdistro-0.8.0.ebuild
@@ -43,6 +43,12 @@ DEPEND="${RDEPEND}
 "
 PATCHES=( "${FILESDIR}/yaml.patch" )
 
+src_prepare() {
+       # Requires network access
+       rm -f test/test_manifest_providers.py
+       default
+}
+
 python_test() {
        nosetests --with-xunit test || die
 }

diff --git a/dev-python/rosdistro/rosdistro-9999.ebuild 
b/dev-python/rosdistro/rosdistro-9999.ebuild
index 1cf2e00b257..cf60a935e58 100644
--- a/dev-python/rosdistro/rosdistro-9999.ebuild
+++ b/dev-python/rosdistro/rosdistro-9999.ebuild
@@ -41,6 +41,13 @@ DEPEND="${RDEPEND}
                dev-python/mock[${PYTHON_USEDEP}]
        )
 "
+PATCHES=( "${FILESDIR}/yaml.patch" )
+
+src_prepare() {
+       # Requires network access
+       rm -f test/test_manifest_providers.py
+       default
+}
 
 python_test() {
        nosetests --with-xunit test || die

Reply via email to