Use backticks around response_started in comment

This commit is contained in:
Marcelo Trylesinski 2026-03-15 14:54:07 +01:00
parent d01c83cd84
commit 798809cc6e

View File

@ -335,7 +335,7 @@ async def test_invalid_header_name(http_protocol_cls: type[HTTPProtocol], name:
protocol = get_connected_protocol(app, http_protocol_cls)
protocol.data_received(SIMPLE_GET_REQUEST)
await protocol.loop.run_one()
# No 500 is sent because response_started is set before header validation,
# No 500 is sent because `response_started` is set before header validation,
# so the error handler just closes the connection.
assert b"HTTP/1.1 500 Internal Server Error" not in protocol.transport.buffer
assert name.encode() not in protocol.transport.buffer