Skip to content

Commit ff087fb

Browse files
committed
test: try a higher base error
OpenSSL is not consistent about error types between versions.
1 parent f6c3af3 commit ff087fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2968,7 +2968,7 @@ def test_verify_strict(self):
29682968
with server:
29692969
with client_context.wrap_socket(socket.socket(),
29702970
server_hostname=hostname) as s:
2971-
with self.assertRaises(ssl.SSLCertVerificationError):
2971+
with self.assertRaises(ssl.SSLError):
29722972
s.connect((HOST, server.port))
29732973

29742974
# explicitly disabling VERIFY_X509_STRICT allows it to succeed

0 commit comments

Comments
 (0)