We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25cca38 commit d25cf83Copy full SHA for d25cf83
test/with_dummyserver/test_socketlevel.py
@@ -1221,10 +1221,11 @@ def socket_handler(listener):
1221
ssl_sock.close()
1222
1223
self._start_server(socket_handler)
1224
- with HTTPSConnectionPool(self.host, self.port) as pool:
1225
- with pytest.raises(MaxRetryError) as cm:
1226
- pool.request("GET", "/", retries=0)
1227
- assert isinstance(cm.value.reason, SSLError)
+ with HTTPSConnectionPool(self.host, self.port, ca_certs=DEFAULT_CA) as pool:
+ with pytest.raises(
+ SSLError, match=r"(wrong version number|record overflow)"
+ ):
1228
+ pool.request("GET", "/", retries=False)
1229
1230
@notSecureTransport
1231
def test_ssl_read_timeout(self):
0 commit comments