mirror of
https://github.com/python/cpython
synced 2024-10-14 18:31:31 +00:00
gh-115627: Fix ssl test_pha_required_nocert() (#117821)
Accept also BrokenPipeError error message.
This commit is contained in:
parent
a97650912e
commit
069de14cb9
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue