Skip to content

Commit

Permalink
pythongh-115627: Fix ssl test_pha_required_nocert() (python#117821)
Browse files Browse the repository at this point in the history
Accept also BrokenPipeError error message.
  • Loading branch information
vstinner authored Apr 12, 2024
1 parent a976509 commit 069de14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Lib/test/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4537,7 +4537,11 @@ def msg_cb(conn, direction, version, content_type, msg_type, data):
# server aborts connection with an error.
with self.assertRaisesRegex(
OSError,
'certificate required|EOF occurred|closed by the remote host|Connection reset by peer'
('certificate required'
'|EOF occurred'
'|closed by the remote host'
'|Connection reset by peer'
'|Broken pipe')
):
# receive CertificateRequest
data = s.recv(1024)
Expand Down

0 comments on commit 069de14

Please sign in to comment.