Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Lib/test/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4346,8 +4346,9 @@ def test_client_sigalgs_mismatch(self):
client_context.set_client_sigalgs("rsa_pss_rsae_sha256")
server_context.set_client_sigalgs("rsa_pss_rsae_sha384")

# Some systems return ConnectionResetError on handshake failures
with self.assertRaises((ssl.SSLError, ConnectionResetError)):
# gh-139504: Some systems return ConnectionResetError
# or BrokenPipeError on handshake failures
with self.assertRaises((ssl.SSLError, ConnectionResetError, BrokenPipeError)):
server_params_test(client_context, server_context,
chatty=True, connectionchatty=True,
sni_name=hostname)
Expand Down
Loading