Commit ec0129f0 authored by Iain R. Learmonth's avatar Iain R. Learmonth
Browse files

Do not attempt to connect to Internet during build-time tests

parent d55c2c37
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
--- a/ooni/tests/__init__.py
+++ b/ooni/tests/__init__.py
@@ -1,10 +1,4 @@
 import socket
 
 def is_internet_connected():
-    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
-    try:
-        s.connect(('torproject.org', 80))
-        s.shutdown(2)
-        return True
-    except Exception:
-        return False
+    return False
+1 −0
Original line number Diff line number Diff line
0001-remove_unneeded_deps_from_requirements.patch
0002-fix_install_paths.patch
0003-fix-install-run.patch
0004-never-run-network-tests.patch