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

Function test_python_file_iterable

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

PythonFileMethod · 0.80

Tested by

no test coverage detected