Skip to content

Commit 1a30466

Browse files
committed
Modify assertRaisesRegex for ThreadedEchoServer (append Connection reset by peer)
1 parent 567fbcb commit 1a30466

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
@@ -4535,7 +4535,7 @@ def msg_cb(conn, direction, version, content_type, msg_type, data):
45354535
# server aborts connection with an error.
45364536
with self.assertRaisesRegex(
45374537
OSError,
4538-
'(certificate required|EOF occurred|closed by the remote host)'
4538+
'certificate required|EOF occurred|closed by the remote host|Connection reset by peer'
45394539
):
45404540
# receive CertificateRequest
45414541
data = s.recv(1024)

0 commit comments

Comments
 (0)