summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_ssl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index 986463a..ed911de 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -1737,6 +1737,9 @@ class TestServerNameCallback(object):
assert args == [(server, b"foo1.example.com")]
+@pytest.mark.skipif(
+ not _lib.Cryptography_HAS_NEXTPROTONEG, reason="NPN is not available"
+)
class TestNextProtoNegotiation(object):
"""
Test for Next Protocol Negotiation in PyOpenSSL.