()
| 957 | |
| 958 | @pytest.mark.pandas |
| 959 | def test_ipc_file_stream_has_eos(): |
| 960 | # ARROW-5395 |
| 961 | df = pd.DataFrame({'foo': [1.5]}) |
| 962 | batch = pa.RecordBatch.from_pandas(df) |
| 963 | sink = pa.BufferOutputStream() |
| 964 | write_file(batch, sink) |
| 965 | buffer = sink.getvalue() |
| 966 | |
| 967 | # skip the file magic |
| 968 | reader = pa.ipc.open_stream(buffer[8:]) |
| 969 | |
| 970 | # will fail if encounters footer data instead of eos |
| 971 | rdf = reader.read_pandas() |
| 972 | |
| 973 | assert_frame_equal(df, rdf) |
| 974 | |
| 975 | |
| 976 | @pytest.mark.pandas |
nothing calls this directly
no test coverage detected