Skip to content

Commit

Permalink
Skip HTTP/2 test if OpenSSL version is less than 1.0.2
Browse files Browse the repository at this point in the history
Until I get around to installing 1.0.2+ on Travis.
  • Loading branch information
vfaronov committed Mar 5, 2017
1 parent 5a2a687 commit 1e175d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_real_mitmdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ def test_http11_tunnel(real_mitmdump): # pylint: disable=redefined-outer-name
)


@pytest.mark.skipif(ssl.OPENSSL_VERSION_INFO < (1, 0, 2),
reason='HTTP/2 needs ALPN, which needs OpenSSL 1.0.2+')
def test_http2_reverse(real_mitmdump): # pylint: disable=redefined-outer-name
# A TLS context that does not verify certificates.
context = hyper.tls.init_context()
Expand Down

0 comments on commit 1e175d9

Please sign in to comment.