Skip to content

Commit 069de14

Browse files
authored
gh-115627: Fix ssl test_pha_required_nocert() (#117821)
Accept also BrokenPipeError error message.
1 parent a976509 commit 069de14

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Lib/test/test_ssl.py

+5-1
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)