From: Tom Christie Date: Thu, 11 Jan 2024 15:29:47 +0000 (+0000) Subject: Linting X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9f9cb96d2c4dd074ed12e5fff451e6a5e89da89;p=thirdparty%2Fhttpx.git Linting --- 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)