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

Function check_data

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

Source from the content-addressed store, hash-verified

2075 file_path = tmpdir / 'output_stream'
2076
2077 def check_data(file_path, data):
2078 with pa.output_stream(file_path) as stream:
2079 stream.write(data)
2080 with open(str(file_path), 'rb') as f:
2081 assert f.read() == data
2082
2083 check_data(file_path, data)
2084 check_data(str(file_path), data)

Calls 3

writeMethod · 0.45
readMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected