We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c65d70 commit abbbc01Copy full SHA for abbbc01
1 file changed
tests/client/test_resource_cleanup.py
@@ -52,7 +52,7 @@ async def mock_send(*args: Any, **kwargs: Any):
52
# Run the test with the patched method
53
async with session:
54
with patch.object(session._write_stream, "send", mock_send):
55
- with pytest.raises(RuntimeError, match="Simulated network error"):
+ with pytest.raises(RuntimeError, match="Simulated network error"): # pragma: no branch
56
await session.send_request(request, EmptyResult)
57
58
# Verify that no response streams were leaked
0 commit comments