From d47dae5503def17a99e7bef777a3b4fceeaf5fe6 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Wed, 11 Dec 2019 16:14:47 +0100 Subject: [PATCH] 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 --- 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 5b587a80181e..cf60a935e58c 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 1cf2e00b257c..cf60a935e58c 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 -- 2.26.2