diff options
author | Nathaniel J. Smith <njs@pobox.com> | 2021-10-27 15:37:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 18:37:33 -0400 |
commit | 45c5678e48839e08cd290285c052a65ecb4cac80 (patch) | |
tree | 5896a3d321de29c29fdc49ac1cf005c55b4afa42 /tests | |
parent | 2ea56348beb51d78310a1a34abd7cdace1350794 (diff) | |
download | pyopenssl-45c5678e48839e08cd290285c052a65ecb4cac80.tar.gz |
Check for invalid ALPN lists before calling OpenSSL, for consistency (#1056)
* Check for invalid ALPN lists before calling OpenSSL, for consistency
Fixes gh-1043
* Soothe flake8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_ssl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py index ffc505d..ca363b4 100644 --- a/tests/test_ssl.py +++ b/tests/test_ssl.py @@ -1928,7 +1928,7 @@ class TestApplicationLayerProtoNegotiation(object): protocols list. Ensure that we produce a user-visible error. """ context = Context(SSLv23_METHOD) - with pytest.raises(Error): + with pytest.raises(ValueError): context.set_alpn_protos([]) def test_alpn_set_on_connection(self): |