File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4346,8 +4346,14 @@ def test_client_sigalgs_mismatch(self):
4346
4346
client_context .set_client_sigalgs ("rsa_pss_rsae_sha256" )
4347
4347
server_context .set_client_sigalgs ("rsa_pss_rsae_sha384" )
4348
4348
4349
- # Some systems return ConnectionResetError on handshake failures
4350
- with self .assertRaises ((ssl .SSLError , ConnectionResetError )):
4349
+ with self .assertRaises ((
4350
+ ssl .SSLError ,
4351
+ # On handshake failures, some systems raise a ConnectionResetError.
4352
+ ConnectionResetError ,
4353
+ # On handshake failures, macOS may raise a BrokenPipeError.
4354
+ # See https://github.com/python/cpython/issues/139504.
4355
+ BrokenPipeError ,
4356
+ )):
4351
4357
server_params_test (client_context , server_context ,
4352
4358
chatty = True , connectionchatty = True ,
4353
4359
sni_name = hostname )
You can’t perform that action at this time.
0 commit comments