From 23aad1747dbf7f0da3e78e45684263ac536f9f88 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 26 May 2020 19:31:32 +0200 Subject: [PATCH] dev-python/dnspython: Forcibly disable Internet-based tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/dnspython/dnspython-1.16.0-r1.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-python/dnspython/dnspython-1.16.0-r1.ebuild b/dev-python/dnspython/dnspython-1.16.0-r1.ebuild index c1a63e4d0e3d..f6749205a505 100644 --- a/dev-python/dnspython/dnspython-1.16.0-r1.ebuild +++ b/dev-python/dnspython/dnspython-1.16.0-r1.ebuild @@ -23,6 +23,12 @@ RDEPEND="dev-python/pycryptodome[${PYTHON_USEDEP}] !dev-python/dnspython:py2 !dev-python/dnspython:py3" +src_prepare() { + sed -i -e '/network_avail/s:True:False:' \ + tests/test_resolver.py || die + distutils-r1_src_prepare +} + python_test() { pushd tests >/dev/null || die "${EPYTHON}" utest.py || die "tests failed under ${EPYTHON}" -- 2.26.2