Skip to content

Commit

Permalink
add benchmark with no sendfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Dec 3, 2024
1 parent 76cdf94 commit cfe1357
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_benchmarks_web_fileresponse.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def test_simple_web_file_sendfile_fallback_response(

async def handler(request: web.Request) -> web.FileResponse:
transport = request.transport
transport._sendfile_compatible = False
assert transport is not None
transport._sendfile_compatible = False # type: ignore
return web.FileResponse(path=filepath)

app = web.Application()
Expand Down

0 comments on commit cfe1357

Please sign in to comment.