summaryrefslogtreecommitdiff
path: root/test/with_dummyserver/test_socketlevel.py
diff options
context:
space:
mode:
authorSeth Michael Larson <sethmichaellarson@gmail.com>2021-11-15 14:59:43 -0600
committerGitHub <noreply@github.com>2021-11-15 14:59:43 -0600
commit111e609250bc7bf67b080b124298e0cf59efef9d (patch)
treec5b4768d81d70a3f1f1ab682c83305c5da3716e2 /test/with_dummyserver/test_socketlevel.py
parent1c6405832e5348c740bc3b67b8b171b5da100a26 (diff)
downloadurllib3-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.py3
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
)