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

Function check_data

python/pyarrow/tests/test_io.py:2102–2106  ·  view source on GitHub ↗
(file_path, data)

Source from the content-addressed store, hash-verified

2100 file_path = tmpdir / 'output_stream'
2101
2102 def check_data(file_path, data):
2103 with pa.output_stream(file_path) as stream:
2104 stream.write(data)
2105 with open(str(file_path), 'rb') as f:
2106 assert f.read() == data
2107
2108 check_data(file_path, data)
2109 check_data(str(file_path), data)

Calls 3

writeMethod · 0.45
readMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected