Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
devel:languages:python:backports
python-tld
skip_internet_tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File skip_internet_tests.patch of Package python-tld
--- 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):
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor