Skip to content

Commit 4edc104

Browse files
committed
fix failing tests on py3.6
1 parent 9a945dc commit 4edc104

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_transport.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,15 @@ def test_keep_alive_on_by_default(make_client):
274274
assert "socket_options" not in options
275275

276276

277+
@pytest.mark.skipif(not PY38, reason="HTTP2 libraries are only available in py3.8+")
277278
def test_http2_with_https_dsn(make_client):
278279
client = make_client(_experiments={"transport_http2": True})
279280
client.transport.parsed_dsn.scheme = "https"
280281
options = client.transport._get_pool_options()
281282
assert options["http2"] is True
282283

283284

285+
@pytest.mark.skipif(not PY38, reason="HTTP2 libraries are only available in py3.8+")
284286
def test_no_http2_with_http_dsn(make_client):
285287
client = make_client(_experiments={"transport_http2": True})
286288
client.transport.parsed_dsn.scheme = "http"

0 commit comments

Comments
 (0)