diff options
author | 2020-05-26 19:31:32 +0200 | |
---|---|---|
committer | 2020-05-26 20:09:48 +0200 | |
commit | 23aad1747dbf7f0da3e78e45684263ac536f9f88 (patch) | |
tree | 2b20f7940387fd5ff68daec3e4d3b78f8994398a /dev-python/dnspython | |
parent | dev-python/socketpool: Port to py39 (diff) | |
download | gentoo-23aad1747dbf7f0da3e78e45684263ac536f9f88.tar.gz gentoo-23aad1747dbf7f0da3e78e45684263ac536f9f88.tar.bz2 gentoo-23aad1747dbf7f0da3e78e45684263ac536f9f88.zip |
dev-python/dnspython: Forcibly disable Internet-based tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/dnspython')
-rw-r--r-- | dev-python/dnspython/dnspython-1.16.0-r1.ebuild | 6 |
1 files changed, 6 insertions, 0 deletions
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}" |