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):
43464346 client_context .set_client_sigalgs ("rsa_pss_rsae_sha256" )
43474347 server_context .set_client_sigalgs ("rsa_pss_rsae_sha384" )
43484348
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+ )):
43514357 server_params_test (client_context , server_context ,
43524358 chatty = True , connectionchatty = True ,
43534359 sni_name = hostname )
You can’t perform that action at this time.
0 commit comments