Skip to content

Commit 88db81e

Browse files
committed
pythongh-115627: Fix ssl test_pha_required_nocert()
Accept also BrokenPipeError error message.
1 parent 2d3d9b4 commit 88db81e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4537,7 +4537,7 @@ 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|EOF occurred|closed by the remote host|Connection reset by peer|Broken pipe'
45414541
):
45424542
# receive CertificateRequest
45434543
data = s.recv(1024)

0 commit comments

Comments
 (0)