Skip to content

Commit

Permalink
[test:networking] Update tests for OpenSSL 3.2 (yt-dlp#8814)
Browse files Browse the repository at this point in the history
Authored by: bashonly
  • Loading branch information
bashonly authored Dec 20, 2023
1 parent 196eb0f commit 37755a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion test/test_websockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 37755a0

Please sign in to comment.