dev-python/dnspython: Forcibly disable Internet-based tests

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-05-26 19:31:32 +02:00
parent d8dcdf4248
commit 23aad1747d

View File

@@ -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}"