https://github.com/python/cpython/commit/069de14cb948f56b37e507f367b99c5563d3685e
commit: 069de14cb948f56b37e507f367b99c5563d3685e
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2024-04-12T20:41:16+02:00
summary:

gh-115627: Fix ssl test_pha_required_nocert() (#117821)

Accept also BrokenPipeError error message.

files:
M Lib/test/test_ssl.py

diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 0e50d09c8f28d6..6ec010d13f9e7e 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -4537,7 +4537,11 @@ def msg_cb(conn, direction, version, content_type, 
msg_type, data):
                 # server aborts connection with an error.
                 with self.assertRaisesRegex(
                     OSError,
-                    'certificate required|EOF occurred|closed by the remote 
host|Connection reset by peer'
+                    ('certificate required'
+                     '|EOF occurred'
+                     '|closed by the remote host'
+                     '|Connection reset by peer'
+                     '|Broken pipe')
                 ):
                     # receive CertificateRequest
                     data = s.recv(1024)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to