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 761be4c commit c045a2cCopy full SHA for c045a2c
Lib/test/test_ssl.py
@@ -4323,7 +4323,9 @@ def test_client_sigalgs(self):
4323
testing_context(client_cert=SIGNED_CERTFILE)
4324
client_context.set_client_sigalgs("rsa_pss_rsae_sha256")
4325
server_context.set_client_sigalgs("rsa_pss_rsae_sha384")
4326
- with self.assertRaises(ssl.SSLError):
+
4327
+ # Some systems return ConnectionResetError on handshake failures
4328
+ with self.assertRaises((ssl.SSLError, ConnectionResetError)):
4329
server_params_test(client_context, server_context,
4330
chatty=True, connectionchatty=True,
4331
sni_name=hostname)
0 commit comments