mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[test:networking] Update tests for OpenSSL 3.2 (#8814)
Authored by: bashonly
This commit is contained in:
		| @@ -328,7 +328,7 @@ class TestHTTPRequestHandler(TestRequestHandlerBase): | ||||
|         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) | ||||
| 
 | ||||
|   | ||||
| @@ -148,7 +148,7 @@ class TestWebsSocketRequestHandlerConformance: | ||||
|     @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) | ||||
| 
 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bashonly
					bashonly