()
| 279 | |
| 280 | |
| 281 | def test_bytesio_readwrite(): |
| 282 | from pyarrow import orc |
| 283 | from io import BytesIO |
| 284 | |
| 285 | buf = BytesIO() |
| 286 | a = pa.array([1, None, 3, None]) |
| 287 | b = pa.array([None, "Arrow", None, "ORC"]) |
| 288 | table = pa.table({"int64": a, "utf8": b}) |
| 289 | orc.write_table(table, buf) |
| 290 | buf.seek(0) |
| 291 | orc_file = orc.ORCFile(buf) |
| 292 | output_table = orc_file.read() |
| 293 | assert table.equals(output_table) |
| 294 | |
| 295 | |
| 296 | def test_buffer_readwrite(): |
nothing calls this directly
no test coverage detected