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

Function test_python_file_iterable

python/pyarrow/tests/test_io.py:254–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252
253
254def test_python_file_iterable():
255 data = b'''line1
256 line2
257 line3
258 '''
259
260 buf = BytesIO(data)
261 buf2 = BytesIO(data)
262
263 with pa.PythonFile(buf, mode='r') as f:
264 for read, expected in zip(f, buf2):
265 assert read == expected
266
267
268def test_python_file_large_seeks():

Callers

nothing calls this directly

Calls 1

PythonFileMethod · 0.80

Tested by

no test coverage detected