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

Function test_message_read_from_compressed

python/pyarrow/tests/test_ipc.py:819–831  ·  view source on GitHub ↗
(example_messages)

Source from the content-addressed store, hash-verified

817
818@pytest.mark.gzip
819def test_message_read_from_compressed(example_messages):
820 # Part of ARROW-5910
821 _, messages = example_messages
822 for message in messages:
823 raw_out = pa.BufferOutputStream()
824 with pa.output_stream(raw_out, compression='gzip') as compressed_out:
825 message.serialize_to(compressed_out)
826
827 compressed_buf = raw_out.getvalue()
828
829 result = pa.ipc.read_message(pa.input_stream(compressed_buf,
830 compression='gzip'))
831 assert result.equals(message)
832
833
834def test_message_read_schema(example_messages):

Callers

nothing calls this directly

Calls 2

BufferOutputStreamMethod · 0.80
equalsMethod · 0.80

Tested by

no test coverage detected