Skip to content

Commit 9f9f8d1

Browse files
committed
test(stdio): mark the write_stream exit branch as no-branch
the 100% coverage gate flags 120->121, 120->123 on the write_stream context manager. same partial-exit shape the read_stream ones already carry a pragma for.
1 parent 052edfe commit 9f9f8d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/server/test_stdio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async def test_stdio_server_serves_bufferless_std_streams_in_place(monkeypatch:
117117
assert received.message == request
118118

119119
response = JSONRPCResponse(jsonrpc="2.0", id=1, result={})
120-
async with write_stream:
120+
async with write_stream: # pragma: no branch
121121
await write_stream.send(SessionMessage(response))
122122

123123
assert jsonrpc_message_adapter.validate_json(stdout.getvalue(), by_name=False) == response

0 commit comments

Comments
 (0)