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

Function test_metadata_equals

python/pyarrow/tests/parquet/test_metadata.py:715–724  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

713
714
715def test_metadata_equals():
716 table = pa.table({"a": [1, 2, 3]})
717 with pa.BufferOutputStream() as out:
718 pq.write_table(table, out)
719 buf = out.getvalue()
720
721 original_metadata = pq.read_metadata(pa.BufferReader(buf))
722 match = "Argument 'other' has incorrect type"
723 with pytest.raises(TypeError, match=match):
724 original_metadata.equals(None)
725
726
727@pytest.mark.parametrize("t1,t2,expected_error", (

Callers

nothing calls this directly

Calls 5

BufferOutputStreamMethod · 0.80
read_metadataMethod · 0.80
BufferReaderMethod · 0.80
equalsMethod · 0.80
write_tableMethod · 0.45

Tested by

no test coverage detected