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

Function test_input_stream_native_file

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

Source from the content-addressed store, hash-verified

2041
2042@pytest.mark.gzip
2043def test_input_stream_native_file():
2044 data = b"some test data\n" * 10 + b"eof\n"
2045 gz_data = gzip.compress(data)
2046 reader = pa.BufferReader(gz_data)
2047 stream = pa.input_stream(reader)
2048 assert stream is reader
2049 reader = pa.BufferReader(gz_data)
2050 stream = pa.input_stream(reader, compression='gzip')
2051 assert stream.read() == data
2052
2053
2054def test_input_stream_errors(tmpdir):

Callers

nothing calls this directly

Calls 2

BufferReaderMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected