From 36e81bbe0a2cce19ce4a73c8ab4f54b8c1de4713 Mon Sep 17 00:00:00 2001 From: Seth Michael Larson Date: Fri, 4 Mar 2022 20:18:02 -0600 Subject: [PATCH] Skip expected failure due to #2577 --- test/with_dummyserver/test_proxy_poolmanager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/with_dummyserver/test_proxy_poolmanager.py b/test/with_dummyserver/test_proxy_poolmanager.py index 03bc08a386..e3994f3f10 100644 --- a/test/with_dummyserver/test_proxy_poolmanager.py +++ b/test/with_dummyserver/test_proxy_poolmanager.py @@ -581,6 +581,9 @@ def test_https_proxy_tls_error( def test_proxy_https_target_tls_error( self, proxy_scheme: str, use_forwarding_for_https: str ) -> None: + if proxy_scheme == "https" and use_forwarding_for_https: + pytest.skip("Test is expected to fail due to urllib3/urllib3#2577") + proxy_url = self.https_proxy_url if proxy_scheme == "https" else self.proxy_url proxy_ctx = ssl.create_default_context() proxy_ctx.load_verify_locations(DEFAULT_CA)