(stream_fixture, options)
| 335 | pa.ipc.IpcReadOptions(use_threads=False), |
| 336 | ]) |
| 337 | def test_open_stream_options(stream_fixture, options): |
| 338 | stream_fixture.write_batches() |
| 339 | source = stream_fixture.get_source() |
| 340 | |
| 341 | reader = pa.ipc.open_stream(source, options=options) |
| 342 | |
| 343 | reader.read_all() |
| 344 | st = reader.stats |
| 345 | assert st.num_messages == 6 |
| 346 | assert st.num_record_batches == 5 |
| 347 | |
| 348 | assert tuple(st) == tuple(stream_fixture.write_stats) |
| 349 | |
| 350 | |
| 351 | def test_open_stream_with_wrong_options(stream_fixture): |
nothing calls this directly
no test coverage detected