Skip to content

Commit c045a2c

Browse files
committed
Allow ConnectionResetError for handshake failures in sigalgs test code
1 parent 761be4c commit c045a2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_ssl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4323,7 +4323,9 @@ def test_client_sigalgs(self):
43234323
testing_context(client_cert=SIGNED_CERTFILE)
43244324
client_context.set_client_sigalgs("rsa_pss_rsae_sha256")
43254325
server_context.set_client_sigalgs("rsa_pss_rsae_sha384")
4326-
with self.assertRaises(ssl.SSLError):
4326+
4327+
# Some systems return ConnectionResetError on handshake failures
4328+
with self.assertRaises((ssl.SSLError, ConnectionResetError)):
43274329
server_params_test(client_context, server_context,
43284330
chatty=True, connectionchatty=True,
43294331
sni_name=hostname)

0 commit comments

Comments
 (0)