1 |
commit: 23aad1747dbf7f0da3e78e45684263ac536f9f88 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 26 17:31:32 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 26 18:09:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23aad174 |
7 |
|
8 |
dev-python/dnspython: Forcibly disable Internet-based tests |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/dnspython/dnspython-1.16.0-r1.ebuild | 6 ++++++ |
13 |
1 file changed, 6 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/dnspython/dnspython-1.16.0-r1.ebuild b/dev-python/dnspython/dnspython-1.16.0-r1.ebuild |
16 |
index c1a63e4d0e3..f6749205a50 100644 |
17 |
--- a/dev-python/dnspython/dnspython-1.16.0-r1.ebuild |
18 |
+++ b/dev-python/dnspython/dnspython-1.16.0-r1.ebuild |
19 |
@@ -23,6 +23,12 @@ RDEPEND="dev-python/pycryptodome[${PYTHON_USEDEP}] |
20 |
!dev-python/dnspython:py2 |
21 |
!dev-python/dnspython:py3" |
22 |
|
23 |
+src_prepare() { |
24 |
+ sed -i -e '/network_avail/s:True:False:' \ |
25 |
+ tests/test_resolver.py || die |
26 |
+ distutils-r1_src_prepare |
27 |
+} |
28 |
+ |
29 |
python_test() { |
30 |
pushd tests >/dev/null || die |
31 |
"${EPYTHON}" utest.py || die "tests failed under ${EPYTHON}" |