(tempdir)
| 805 | |
| 806 | |
| 807 | def 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', [ |
nothing calls this directly
no test coverage detected