From fc9fa87827d64c770d329b24151f3ef354054d74 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 15 Feb 2016 18:43:06 +0100 Subject: fix ALPN checks --- test/netlib/http/http2/test_connections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/netlib/http') diff --git a/test/netlib/http/http2/test_connections.py b/test/netlib/http/http2/test_connections.py index a115fc7c..8be127e4 100644 --- a/test/netlib/http/http2/test_connections.py +++ b/test/netlib/http/http2/test_connections.py @@ -70,7 +70,7 @@ class TestCheckALPNMatch(tservers.ServerTestBase): alpn_select=b'h2', ) - if OpenSSL._util.lib.Cryptography_HAS_ALPN: + if tcp.HAS_ALPN: def test_check_alpn(self): c = tcp.TCPClient(("127.0.0.1", self.port)) @@ -86,7 +86,7 @@ class TestCheckALPNMismatch(tservers.ServerTestBase): alpn_select=None, ) - if OpenSSL._util.lib.Cryptography_HAS_ALPN: + if tcp.HAS_ALPN: def test_check_alpn(self): c = tcp.TCPClient(("127.0.0.1", self.port)) -- cgit v1.2.3