Skip to content

Commit 8c80aaa

Browse files
1 parent d92e18d commit 8c80aaa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎google/auth/aio/transport/aiohttp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def headers(self) -> Mapping[str, str]:
5858
@_helpers.copy_docstring(transport.Response)
5959
async def content(self, chunk_size: int = 1024) -> AsyncGenerator[bytes, None]:
6060
try:
61-
async for chunk in self._response.content.iter_chunked(chunk_size): # pragma: no branch
61+
async for chunk in self._response.content.iter_chunked(
62+
chunk_size
63+
): # pragma: no branch
6264
yield chunk
6365
except aiohttp.ClientPayloadError as exc:
6466
raise exceptions.ResponseError(

‎tests/transport/aio/test_aiohttp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async def test_request_call_success(self, aiohttp_request):
125125
assert response.headers == {"Content-Type": "application/json"}
126126
content = b"".join([chunk async for chunk in response.content()])
127127
assert content == b"Cavefish have no sight."
128-
128+
129129
async def test_request_call_success_with_provided_session(self):
130130
mock_session = aiohttp.ClientSession()
131131
request = auth_aiohttp.Request(mock_session)

0 commit comments

Comments
 (0)