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

Function test_open_output_stream

python/pyarrow/tests/test_fs.py:1077–1086  ·  view source on GitHub ↗
(fs, pathfn, compression, buffer_size,
                            decompressor)

Source from the content-addressed store, hash-verified

1075 ]
1076)
1077def test_open_output_stream(fs, pathfn, compression, buffer_size,
1078 decompressor):
1079 p = pathfn('open-output-stream')
1080
1081 data = b'some data for writing' * 1024
1082 with fs.open_output_stream(p, compression, buffer_size) as f:
1083 f.write(data)
1084
1085 with fs.open_input_stream(p, compression, buffer_size) as f:
1086 assert f.read(len(data)) == data
1087
1088
1089@pytest.mark.gzip

Callers

nothing calls this directly

Calls 6

pathfnFunction · 0.85
lenFunction · 0.85
open_output_streamMethod · 0.45
writeMethod · 0.45
open_input_streamMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected