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

Function test_parquet_file_too_small

python/pyarrow/tests/parquet/test_basic.py:807–817  ·  view source on GitHub ↗
(tempdir)

Source from the content-addressed store, hash-verified

805
806
807def test_parquet_file_too_small(tempdir):
808 path = str(tempdir / "test.parquet")
809 with pytest.raises(pa.ArrowInvalid, match='size is 0 bytes'):
810 with open(path, 'wb') as f:
811 pass
812 pq.read_table(path)
813
814 with pytest.raises(pa.ArrowInvalid, match='size is 4 bytes'):
815 with open(path, 'wb') as f:
816 f.write(b'ffff')
817 pq.read_table(path)
818
819
820@pytest.mark.parametrize('array_factory', [

Callers

nothing calls this directly

Calls 2

read_tableMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected