python/elasticsearch: update to 8.16.0
[oi-userland.git] / components / python / httplib2 / patches / 01-pytest-skip-failing.patch
blobec0fe34da0e54cca6cb3f10e9fb1b03b61d894ed
1 --- httplib2-0.22.0/tests/test_proxy.py.orig
2 +++ httplib2-0.22.0/tests/test_proxy.py
3 @@ -19,6 +19,8 @@
4 import tests
5 from six.moves import urllib
7 +import pytest
10 def _raise_name_not_known_error(*args, **kwargs):
11 raise socket.gaierror(socket.EAI_NONAME, "Name or service not known")
12 @@ -135,6 +137,7 @@
13 # "See https://travis-ci.org/httplib2/httplib2/jobs/408769880.",
14 # )
15 @mock.patch("socket.socket.connect", spec=True)
16 +@pytest.mark.skip(reason="always fails: https://github.com/httplib2/httplib2/issues/192")
17 def test_server_not_found_error_is_raised_for_invalid_hostname(mock_socket_connect):
18 """Invalidates https://github.com/httplib2/httplib2/pull/100."""
19 mock_socket_connect.side_effect = _raise_name_not_known_error
20 @@ -181,6 +184,7 @@
21 assert response.status == 200
24 +@pytest.mark.skip(reason="always fails: https://github.com/httplib2/httplib2/issues/170")
25 def test_socks5_auth():
26 def proxy_conn(client, tick):
27 data = client.recv(64)
28 --- httplib2-0.22.0/tests/test_other.py.orig
29 +++ httplib2-0.22.0/tests/test_other.py
30 @@ -111,6 +111,7 @@
31 assert response.reason.startswith("Request Timeout")
34 +@pytest.mark.skip(reason="always fails: https://github.com/httplib2/httplib2/issues/240")
35 def test_timeout_subsequent():
36 class Handler(object):
37 number = 0