No I think this is requests/urllib3 again

This commit is contained in:
coletdjnz 2024-05-18 12:53:46 +12:00
parent 018acbb93c
commit 1b96519a35
No known key found for this signature in database
GPG Key ID: 91984263BB39894A

View File

@ -411,6 +411,10 @@ class TestHTTPConnectProxy:
with pytest.raises(ProxyError):
ctx.proxy_info_request(rh)
@pytest.mark.skip_handler(
'Requests',
'bug in urllib3 causes unclosed socket: https://github.com/urllib3/urllib3/issues/3374'
)
def test_http_connect_http_error(self, handler, ctx):
with ctx.http_server(HTTPConnectProxyHandler, username='http_error', password='test') as server_address:
with handler(verify=False, proxies={ctx.REQUEST_PROTO: f'http://http_error:test@{server_address}'}) as rh: