From: Victor Stinner Date: Fri, 12 Apr 2024 18:41:16 +0000 (+0200) Subject: gh-115627: Fix ssl test_pha_required_nocert() (#117821) X-Git-Tag: v3.13.0b1~450 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=069de14cb948f56b37e507f367b99c5563d3685e;p=thirdparty%2FPython%2Fcpython.git gh-115627: Fix ssl test_pha_required_nocert() (#117821) Accept also BrokenPipeError error message. --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 0e50d09c8f28..6ec010d13f9e 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -4537,7 +4537,11 @@ class TestPostHandshakeAuth(unittest.TestCase): # 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)