()
| 1692 | |
| 1693 | @pytest.mark.gzip |
| 1694 | def test_compressed_input_invalid(): |
| 1695 | data = b"foo" * 10 |
| 1696 | raw = pa.BufferReader(data) |
| 1697 | with pytest.raises(ValueError): |
| 1698 | pa.CompressedInputStream(raw, "unknown_compression") |
| 1699 | with pytest.raises(TypeError): |
| 1700 | pa.CompressedInputStream(raw, None) |
| 1701 | |
| 1702 | with pa.CompressedInputStream(raw, "gzip") as compressed: |
| 1703 | with pytest.raises(IOError, match="zlib inflate failed"): |
| 1704 | compressed.read() |
| 1705 | |
| 1706 | |
| 1707 | def make_compressed_output(data, fn, compression): |
nothing calls this directly
no test coverage detected