Skip to content

Commit 4d57590

Browse files
reaperhulkalex
authored andcommitted
skip NPN tests if NPN is not available (#822)
* skip NPN tests if NPN is not available * use the right name
1 parent a42c5c9 commit 4d57590

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_ssl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,9 @@ def servername(conn):
17371737
assert args == [(server, b"foo1.example.com")]
17381738

17391739

1740+
@pytest.mark.skipif(
1741+
not _lib.Cryptography_HAS_NEXTPROTONEG, reason="NPN is not available"
1742+
)
17401743
class TestNextProtoNegotiation(object):
17411744
"""
17421745
Test for Next Protocol Negotiation in PyOpenSSL.

0 commit comments

Comments
 (0)