diff options
author | Victor Stinner <vstinner@python.org> | 2024-04-12 18:41:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 18:41:16 (GMT) |
commit | 069de14cb948f56b37e507f367b99c5563d3685e (patch) | |
tree | 9fd48c2cd26603648069ef21dfae756ea2929343 | |
parent | a97650912e0d17b15fea70dd114577630635d326 (diff) | |
download | cpython-069de14cb948f56b37e507f367b99c5563d3685e.zip cpython-069de14cb948f56b37e507f367b99c5563d3685e.tar.gz cpython-069de14cb948f56b37e507f367b99c5563d3685e.tar.bz2 |
gh-115627: Fix ssl test_pha_required_nocert() (#117821)
Accept also BrokenPipeError error message.
-rw-r--r-- | Lib/test/test_ssl.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 0e50d09..6ec010d 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) |