MCPcopy Create free account
hub / github.com/apache/arrow / test_file_pathlib

Function test_file_pathlib

python/pyarrow/tests/test_ipc.py:227–238  ·  view source on GitHub ↗
(file_fixture, tmpdir)

Source from the content-addressed store, hash-verified

225
226
227def test_file_pathlib(file_fixture, tmpdir):
228 file_fixture.write_batches()
229 source = file_fixture.get_source()
230
231 path = tmpdir.join('file.arrow').strpath
232 with open(path, 'wb') as f:
233 f.write(source)
234
235 t1 = pa.ipc.open_file(pathlib.Path(path)).read_all()
236 t2 = pa.ipc.open_file(pa.OSFile(path)).read_all()
237
238 assert t1.equals(t2)
239
240
241def test_empty_stream():

Callers

nothing calls this directly

Calls 6

write_batchesMethod · 0.80
get_sourceMethod · 0.80
equalsMethod · 0.80
joinMethod · 0.45
writeMethod · 0.45
PathMethod · 0.45

Tested by

no test coverage detected