]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fixed mypy errors in test_async_client.py and test_client.py (#985)
authorHasan Ramezani <hasan.r67@gmail.com>
Wed, 27 May 2020 19:29:52 +0000 (21:29 +0200)
committerGitHub <noreply@github.com>
Wed, 27 May 2020 19:29:52 +0000 (21:29 +0200)
tests/client/test_async_client.py
tests/client/test_client.py

index abcc82bbe75703fd38a30a4bbbd454fd719de109..8f0e9d6f56d77b3a9036e69e24ccd5baea330fb7 100644 (file)
@@ -95,7 +95,7 @@ async def test_raise_for_status(server):
                     response.raise_for_status()
                 assert exc_info.value.response == response
             else:
-                assert response.raise_for_status() is None
+                assert response.raise_for_status() is None  # type: ignore
 
 
 @pytest.mark.usefixtures("async_environment")
index 0bb1cc193fdded757ea47d5bdb4bc61312787555..5271e733799fda0056fe93c978fcd10b8589f033 100644 (file)
@@ -110,7 +110,7 @@ def test_raise_for_status(server):
                     response.raise_for_status()
                 assert exc_info.value.response == response
             else:
-                assert response.raise_for_status() is None
+                assert response.raise_for_status() is None  # type: ignore
 
 
 def test_options(server):