mirror of https://github.com/python/cpython
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 @@ class TestPostHandshakeAuth(unittest.TestCase):
|
|||
# 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 New Issue