From c9f9cb96d2c4dd074ed12e5fff451e6a5e89da89 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 11 Jan 2024 15:29:47 +0000 Subject: [PATCH] Linting --- tests/client/test_async_client.py | 3 ++- tests/client/test_client.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/client/test_async_client.py b/tests/client/test_async_client.py index d2bbfc2e..9479280c 100644 --- a/tests/client/test_async_client.py +++ b/tests/client/test_async_client.py @@ -376,6 +376,7 @@ async def test_server_extensions(server): def test_http2_parameter_deprecated(): - # The 'http1' and 'http2' flags are deprecated in favor of `version=httpx.Version(...)`. + # The 'http1' and 'http2' flags are deprecated in favor of + # `version=httpx.Version("HTTP/1.1", "HTTP/2")`. with pytest.raises(RuntimeError): httpx.AsyncClient(http2=True) diff --git a/tests/client/test_client.py b/tests/client/test_client.py index c460fced..b1add4fa 100644 --- a/tests/client/test_client.py +++ b/tests/client/test_client.py @@ -463,6 +463,7 @@ def test_client_decode_text_using_explicit_encoding(): def test_http2_parameter_deprecated(): - # The 'http1' and 'http2' flags are deprecated in favor of `version=httpx.Version(...)`. + # The 'http1' and 'http2' flags are deprecated in favor of + # `version=httpx.Version("HTTP/1.1", "HTTP/2")`. with pytest.raises(RuntimeError): httpx.Client(http2=True) -- 2.47.3