Skip to content

Commit

Permalink
Use ssl.SSLCertVerificationError instead of ssl.SSLError
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Jul 27, 2021
1 parent f950492 commit 65f8ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_ssltransport.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def test_wrong_sni_hint(self):
with self.client_context.wrap_socket(
sock, server_hostname="localhost"
) as proxy_sock:
with pytest.raises(ssl.SSLError):
with pytest.raises(ssl.SSLCertVerificationError):
SSLTransport(
proxy_sock, self.client_context, server_hostname="veryverywrong"
)
Expand Down

0 comments on commit 65f8ae4

Please sign in to comment.