diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 18:43:06 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 18:43:06 +0100 |
commit | fc9fa87827d64c770d329b24151f3ef354054d74 (patch) | |
tree | c0f32f41aa54ce66509853abe99201838eb6500a /test/netlib | |
parent | b7af84552385fa6daf5f594ffa981f8647f7e755 (diff) | |
download | mitmproxy-fc9fa87827d64c770d329b24151f3ef354054d74.tar.gz mitmproxy-fc9fa87827d64c770d329b24151f3ef354054d74.tar.bz2 mitmproxy-fc9fa87827d64c770d329b24151f3ef354054d74.zip |
fix ALPN checks
Diffstat (limited to 'test/netlib')
-rw-r--r-- | test/netlib/http/http2/test_connections.py | 4 | ||||
-rw-r--r-- | test/netlib/test_tcp.py | 2 |
2 files changed, 3 insertions, 3 deletions
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)) diff --git a/test/netlib/test_tcp.py b/test/netlib/test_tcp.py index 2b091ef0..8ae3aa51 100644 --- a/test/netlib/test_tcp.py +++ b/test/netlib/test_tcp.py @@ -512,7 +512,7 @@ class TestALPNClient(tservers.ServerTestBase): alpn_select=b"bar" ) - if OpenSSL._util.lib.Cryptography_HAS_ALPN: + if tcp.HAS_ALPN: def test_alpn(self): c = tcp.TCPClient(("127.0.0.1", self.port)) c.connect() |