-
Notifications
You must be signed in to change notification settings - Fork 190
Open
Labels
Description
___________________________________________ test_server_not_found_error_is_raised_for_invalid_hostname ____________________________________________
/usr/lib/python3.8/site-packages/socks.py:787: in connect
super(socksocket, self).connect(proxy_addr)
/usr/lib/python3.8/site-packages/mock/mock.py:1092: in __call__
return _mock_self._mock_call(*args, **kwargs)
/usr/lib/python3.8/site-packages/mock/mock.py:1149: in _mock_call
result = effect(*args, **kwargs)
tests/test_proxy.py:21: in _raise_name_not_known_error
raise socket.gaierror(socket.EAI_NONAME, "Name or service not known")
E socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
/usr/lib/python3.8/site-packages/httplib2/__init__.py:1557: in _conn_request
conn.connect()
/usr/lib/python3.8/site-packages/httplib2/__init__.py:1236: in connect
raise socket_err
/usr/lib/python3.8/site-packages/httplib2/__init__.py:1210: in connect
self.sock.connect((self.host, self.port) + sa[2:])
/usr/lib/python3.8/site-packages/socks.py:47: in wrapper
return function(*args, **kwargs)
/usr/lib/python3.8/site-packages/socks.py:800: in connect
raise ProxyConnectionError(msg, error)
E socks.ProxyConnectionError: Error connecting to HTTP proxy 255.255.255.255:8001: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
tests/test_proxy.py:116: in test_server_not_found_error_is_raised_for_invalid_hostname
http.request("http://invalid.hostname.foo.bar/", "GET")
/usr/lib/python3.8/site-packages/httplib2/__init__.py:1985: in request
(response, content) = self._request(
/usr/lib/python3.8/site-packages/httplib2/__init__.py:1650: in _request
(response, content) = self._conn_request(
/usr/lib/python3.8/site-packages/httplib2/__init__.py:1567: in _conn_request
e.args[0].errno if isinstance(e.args[0], socket.error) else e.errno
E IndexError: tuple index out of range
________________________________________________________________ test_socks5_auth _________________________________________________________________
tests/test_proxy.py:174: in test_socks5_auth
with tests.assert_raises(httplib2.socks.Socks5AuthError):
E AttributeError: module 'socks' has no attribute 'Socks5AuthError'
Reactions are currently unavailable