]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Linting
authorTom Christie <tom.christie@krakentechnologies.ltd>
Thu, 11 Jan 2024 15:29:47 +0000 (15:29 +0000)
committerTom Christie <tom.christie@krakentechnologies.ltd>
Thu, 11 Jan 2024 15:29:47 +0000 (15:29 +0000)
tests/client/test_async_client.py
tests/client/test_client.py

index d2bbfc2edd185d6a9914a3a85cc49c88e9f8c2e1..9479280c57a0f9b265b3459bc8119819c92999be 100644 (file)
@@ -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)
index c460fced50b00fc73a8fdabea2aa803c5e0461f6..b1add4fa516697f8e9035a41c3bca576940ece69 100644 (file)
@@ -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)