(file_fixture, tmpdir)
| 249 | |
| 250 | |
| 251 | def test_file_pathlib(file_fixture, tmpdir): |
| 252 | file_fixture.write_batches() |
| 253 | source = file_fixture.get_source() |
| 254 | |
| 255 | path = tmpdir.join('file.arrow').strpath |
| 256 | with open(path, 'wb') as f: |
| 257 | f.write(source) |
| 258 | |
| 259 | t1 = pa.ipc.open_file(pathlib.Path(path)).read_all() |
| 260 | t2 = pa.ipc.open_file(pa.OSFile(path)).read_all() |
| 261 | |
| 262 | assert t1.equals(t2) |
| 263 | |
| 264 | |
| 265 | def test_empty_stream(): |
nothing calls this directly
no test coverage detected