summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2019-02-26 21:42:12 +0800
committerAlex Gaynor <alex.gaynor@gmail.com>2019-02-26 08:42:12 -0500
commit4d57590bc7fc93430a1fdacc31bc0cbd9778f678 (patch)
tree9d5d39465ee2bf60a85d1063988fe05c3aaa0145
parenta42c5c9a91639c1d4405e67316046cb6b939ac84 (diff)
downloadpyopenssl-git-4d57590bc7fc93430a1fdacc31bc0cbd9778f678.tar.gz
skip NPN tests if NPN is not available (#822)
* skip NPN tests if NPN is not available * use the right name
-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.