]> jfr.im git - yt-dlp.git/commitdiff
[test:networking] Update tests for OpenSSL 3.2 (#8814)
authorbashonly <redacted>
Wed, 20 Dec 2023 19:03:54 +0000 (13:03 -0600)
committerGitHub <redacted>
Wed, 20 Dec 2023 19:03:54 +0000 (19:03 +0000)
Authored by: bashonly

test/test_networking.py
test/test_websockets.py

index 64af6e459a730cd7c7124955298efd51c8d60e59..dc60ca699457f08b46168153305d56b2357bdddc 100644 (file)
@@ -328,7 +328,7 @@ def test_ssl_error(self, handler):
         https_server_thread.start()
 
         with handler(verify=False) as rh:
-            with pytest.raises(SSLError, match='sslv3 alert handshake failure') as exc_info:
+            with pytest.raises(SSLError, match=r'ssl(?:v3|/tls) alert handshake failure') as exc_info:
                 validate_and_send(rh, Request(f'https://127.0.0.1:{https_port}/headers'))
             assert not issubclass(exc_info.type, CertificateVerifyError)
 
index 39d3c7d7221439edaaf796d9512ef842de21a1c4..af6142ea3b3434fe9629c83239fab3f362005ab8 100644 (file)
@@ -148,7 +148,7 @@ def test_verify_cert(self, handler):
     @pytest.mark.parametrize('handler', ['Websockets'], indirect=True)
     def test_ssl_error(self, handler):
         with handler(verify=False) as rh:
-            with pytest.raises(SSLError, match='sslv3 alert handshake failure') as exc_info:
+            with pytest.raises(SSLError, match=r'ssl(?:v3|/tls) alert handshake failure') as exc_info:
                 validate_and_send(rh, Request(self.bad_wss_host))
             assert not issubclass(exc_info.type, CertificateVerifyError)