diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 10:36:58 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 10:48:13 +0200 |
commit | bd0cfef357ff33ab8be216998e8de69c1784c043 (patch) | |
tree | 72cfaf1be81657e2e9f6b7460b67242c71a25e84 /test/test_pathod.py | |
parent | 559c80214d59828e5f84af6f009ea60c23235d77 (diff) | |
download | mitmproxy-bd0cfef357ff33ab8be216998e8de69c1784c043.tar.gz mitmproxy-bd0cfef357ff33ab8be216998e8de69c1784c043.tar.bz2 mitmproxy-bd0cfef357ff33ab8be216998e8de69c1784c043.zip |
exclude tests on old OpenSSL without ALPN
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r-- | test/test_pathod.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py index 1a3a5004..7cd2fccc 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -1,8 +1,9 @@ import sys import cStringIO +import OpenSSL + from libpathod import pathod, version from netlib import tcp, http, http2 - import tutils @@ -271,13 +272,14 @@ class TestDaemonSSL(CommonTests): assert self.d.last_log()["cipher"][1] > 0 class TestHTTP2(tutils.DaemonTests): - force_http2 = True ssl = True noweb = True noapi = True nohang = True - def test_http2(self): - r, _ = self.pathoc(["GET:/"], ssl=True, use_http2=True) - print(r) - assert r[0].status_code == "800" + if OpenSSL._util.lib.Cryptography_HAS_ALPN: + + def test_http2(self): + r, _ = self.pathoc(["GET:/"], ssl=True, use_http2=True) + print(r) + assert r[0].status_code == "800" |