Skip to content

Commit abbbc01

Browse files
committed
test: ignore branch-only arc in pytest.raises
1 parent 6c65d70 commit abbbc01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/client/test_resource_cleanup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async def mock_send(*args: Any, **kwargs: Any):
5252
# Run the test with the patched method
5353
async with session:
5454
with patch.object(session._write_stream, "send", mock_send):
55-
with pytest.raises(RuntimeError, match="Simulated network error"):
55+
with pytest.raises(RuntimeError, match="Simulated network error"): # pragma: no branch
5656
await session.send_request(request, EmptyResult)
5757

5858
# Verify that no response streams were leaked

0 commit comments

Comments
 (0)