Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 31, 2022
1 parent 7941966 commit 252a07f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aiohttp/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ async def _run_app(
handle_signals: bool = True,
reuse_address: Optional[bool] = None,
reuse_port: Optional[bool] = None,
cancel_handler_on_connection_lost: bool = False
cancel_handler_on_connection_lost: bool = False,
) -> None:
# An internal function to actually do all dirty job for application running
if asyncio.iscoroutine(app):
Expand Down
4 changes: 3 additions & 1 deletion tests/test_web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ async def client_request_maker():
await asyncio.wait_for(request, timeout=0.1)

try:
assert runner.server.cancel_handler_on_connection_lost, "Flag was not propagated"
assert (
runner.server.cancel_handler_on_connection_lost
), "Flag was not propagated"
await client_request_maker()

await asyncio.wait_for(event.wait(), timeout=1)
Expand Down

0 comments on commit 252a07f

Please sign in to comment.