forked from pool/python-tld
- Tests improvements. - update to version 0.9.4: - Optimisations in setup.py, tests and console scripts. - Skip testing the update-tld-names functionality if no internet is available. - add skip_internet_tests.patch - remove remove-download-test.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tld?expand=0&rev=16
18 lines
511 B
Diff
18 lines
511 B
Diff
--- 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):
|