diff options
author | Seth Michael Larson <sethmichaellarson@gmail.com> | 2021-11-15 14:59:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-15 14:59:43 -0600 |
commit | 111e609250bc7bf67b080b124298e0cf59efef9d (patch) | |
tree | c5b4768d81d70a3f1f1ab682c83305c5da3716e2 /test/with_dummyserver/test_socketlevel.py | |
parent | 1c6405832e5348c740bc3b67b8b171b5da100a26 (diff) | |
download | urllib3-111e609250bc7bf67b080b124298e0cf59efef9d.tar.gz |
Wrap proxy TLS, connection, and timeout errors with ProxyError
Diffstat (limited to 'test/with_dummyserver/test_socketlevel.py')
-rw-r--r-- | test/with_dummyserver/test_socketlevel.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/with_dummyserver/test_socketlevel.py b/test/with_dummyserver/test_socketlevel.py index efed8643..bc4eae41 100644 --- a/test/with_dummyserver/test_socketlevel.py +++ b/test/with_dummyserver/test_socketlevel.py @@ -38,7 +38,6 @@ from urllib3 import HTTPConnectionPool, HTTPSConnectionPool, ProxyManager, util from urllib3._collections import HTTPHeaderDict from urllib3.connection import HTTPConnection, _get_default_user_agent from urllib3.exceptions import ( - HTTPSProxyError, MaxRetryError, ProtocolError, ProxyError, @@ -1180,7 +1179,7 @@ class TestProxyManager(SocketDummyServerTestCase): errored.set() # Avoid a ConnectionAbortedError on Windows. - assert type(e.value.reason) == HTTPSProxyError + assert type(e.value.reason) == ProxyError assert "Your proxy appears to only use HTTP and not HTTPS" in str( e.value.reason ) |