1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From: =?utf-8?b?T25kxZllaiBOb3bDvQ==?= <onovy@debian.org>
Date: Fri, 1 Dec 2017 14:59:57 +0100
Subject: Don't access internet during build
---
test/utils.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/test/utils.py b/test/utils.py
index 7c840f1..6a4c9a1 100644
--- a/test/utils.py
+++ b/test/utils.py
@@ -44,11 +44,7 @@ requires_future_libgit2 = pytest.mark.xfail(
reason='This test may work with a future version of libgit2',
)
-try:
- socket.gethostbyname('github.com')
- has_network = True
-except socket.gaierror:
- has_network = False
+has_network = False
requires_network = pytest.mark.skipif(not has_network, reason='Requires network')
|