From: Tom Christie Date: Thu, 24 Sep 2020 16:50:30 +0000 (+0100) Subject: Fix warning test case (#1322) X-Git-Tag: 0.15.4~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=320bfe1d0e2428561b392537c750543f13c4a8e5;p=thirdparty%2Fhttpx.git Fix warning test case (#1322) --- diff --git a/tests/client/test_auth.py b/tests/client/test_auth.py index efbfcc36..677fb9f6 100644 --- a/tests/client/test_auth.py +++ b/tests/client/test_auth.py @@ -173,7 +173,7 @@ async def test_basic_auth_with_stream() -> None: async with httpx.AsyncClient(transport=MockTransport(app), auth=auth) as client: async with client.stream("GET", url) as response: - response.read() + await response.aread() assert response.status_code == 200 assert response.json() == {"auth": "Basic dG9tY2hyaXN0aWU6cGFzc3dvcmQxMjM="}