14
0
forked from pool/python-tld
Files
python-tld/skip_internet_tests.patch

18 lines
511 B
Diff
Raw Normal View History

--- tld-0.9.5/src/tld/tests/base.py 2019-09-11 01:17:41.000000000 +0200
+++ tld-0.9.5/src/tld/tests/base.py 2019-09-14 22:20:02.920343051 +0200
@@ -55,13 +55,7 @@
OpenPort: 53/tcp
Service: domain (DNS/TCP)
"""
- try:
- socket.setdefaulttimeout(timeout)
- socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect((host, port))
- return True
- except socket.error as ex:
- print(ex)
- return False
+ return False
def internet_available_only(func):