Skip to content

Commit 3e30ddf

Browse files
committed
Modify assertRaisesRegex for ThreadedEchoServer (append Connection reset by peer)
1 parent d9f8a0b commit 3e30ddf

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
@@ -4449,7 +4449,7 @@ def msg_cb(conn, direction, version, content_type, msg_type, data):
44494449
# server aborts connection with an error.
44504450
with self.assertRaisesRegex(
44514451
OSError,
4452-
'(certificate required|EOF occurred|closed by the remote host)'
4452+
'certificate required|EOF occurred|closed by the remote host|Connection reset by peer'
44534453
):
44544454
# receive CertificateRequest
44554455
data = s.recv(1024)

0 commit comments

Comments
 (0)