]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115627: Fix ssl test_pha_required_nocert() (#117821)
authorVictor Stinner <vstinner@python.org>
Fri, 12 Apr 2024 18:41:16 +0000 (20:41 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Apr 2024 18:41:16 +0000 (20:41 +0200)
Accept also BrokenPipeError error message.

Lib/test/test_ssl.py

index 0e50d09c8f28d6bc2c0232a27a2eb99548c108f5..6ec010d13f9e7e3742b25618a2950a5c221e458c 100644 (file)
@@ -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)