We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6af89ee commit 7a62f64Copy full SHA for 7a62f64
tests/integration_tests/test_streaming.py
@@ -120,15 +120,11 @@ async def test_stream_failure_async(test_native_async_client):
120
121
stream = await test_native_async_client.query_row_block_stream(query)
122
123
- with pytest.raises(StreamFailureError) as excinfo:
+ with pytest.raises(StreamFailureError):
124
async with stream:
125
async for _ in stream:
126
pass
127
128
- error_msg = str(excinfo.value).lower()
129
- # Race condition: may get actual ClickHouse error or generic connection closed
130
- assert 'division by zero' in error_msg or 'connection closed' in error_msg
131
-
132
133
def test_raw_stream(param_client, call, consume_stream):
134
"""Test raw_stream for streaming response."""
0 commit comments