--- httplib2-0.30.0/tests/test_proxy.py.orig +++ httplib2-0.30.0/tests/test_proxy.py @@ -16,6 +16,8 @@ def _raise_name_not_known_error(*args, **kwargs): raise socket.gaierror(socket.EAI_NONAME, "Name or service not known") +import pytest + def test_from_url(): pi = httplib2.proxy_info_from_url("http://myproxy.example.com") @@ -123,6 +125,7 @@ @mock.patch("socket.socket.connect", spec=True) +@pytest.mark.skip(reason="always fails: https://github.com/httplib2/httplib2/issues/192") def test_server_not_found_error_is_raised_for_invalid_hostname(mock_socket_connect): """Invalidates https://github.com/httplib2/httplib2/pull/100.""" mock_socket_connect.side_effect = _raise_name_not_known_error @@ -173,6 +176,7 @@ assert response.status == 200 +@pytest.mark.skip(reason="always fails: https://github.com/httplib2/httplib2/issues/170") def test_socks5_auth(): def proxy_conn(client, tick): data = client.recv(64) --- httplib2-0.30.0/tests/test_other.py.orig +++ httplib2-0.30.0/tests/test_other.py @@ -102,6 +102,7 @@ assert response.reason.startswith("Request Timeout") +@pytest.mark.skip(reason="always fails: https://github.com/httplib2/httplib2/issues/240") def test_timeout_subsequent(): class Handler(object): number = 0