Skip to content

Commit f7d47e6

Browse files
vstinnerdiegorusso
authored andcommitted
pythongh-115627: Fix ssl test_pha_required_nocert() (python#117821)
Accept also BrokenPipeError error message.
1 parent a5d15de commit f7d47e6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Lib/test/test_ssl.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4537,7 +4537,11 @@ def msg_cb(conn, direction, version, content_type, msg_type, data):
45374537
# server aborts connection with an error.
45384538
with self.assertRaisesRegex(
45394539
OSError,
4540-
'certificate required|EOF occurred|closed by the remote host|Connection reset by peer'
4540+
('certificate required'
4541+
'|EOF occurred'
4542+
'|closed by the remote host'
4543+
'|Connection reset by peer'
4544+
'|Broken pipe')
45414545
):
45424546
# receive CertificateRequest
45434547
data = s.recv(1024)

0 commit comments

Comments
 (0)