[test] Fix handshake error matching for OpenSSL 4.x (#17491)

Closes #17490
Authored by: mikelolasagasti
This commit is contained in:
Mikel Olasagasti Uranga
2026-08-20 22:04:50 +00:00
committed by GitHub
parent 3a08beaf03
commit 91f784d6fd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ class TestWebsSocketRequestHandlerConformance:
def test_ssl_error(self, handler):
with handler(verify=False) as rh:
with pytest.raises(SSLError, match=r'ssl(?:v3|/tls) alert handshake failure') as exc_info:
with pytest.raises(SSLError, match=r'(?:sslv3|tls) alert handshake failure') as exc_info:
ws_validate_and_send(rh, Request(self.bad_wss_host))
assert not issubclass(exc_info.type, CertificateVerifyError)