diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-02-26 21:42:12 +0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2019-02-26 08:42:12 -0500 |
commit | 4d57590bc7fc93430a1fdacc31bc0cbd9778f678 (patch) | |
tree | 9d5d39465ee2bf60a85d1063988fe05c3aaa0145 /tests/test_ssl.py | |
parent | a42c5c9a91639c1d4405e67316046cb6b939ac84 (diff) | |
download | pyopenssl-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
Diffstat (limited to 'tests/test_ssl.py')
-rw-r--r-- | tests/test_ssl.py | 3 |
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. |