()
| 969 | |
| 970 | |
| 971 | def test_memory_output_stream(): |
| 972 | # 10 bytes |
| 973 | val = b'dataabcdef' |
| 974 | f = pa.BufferOutputStream() |
| 975 | |
| 976 | K = 1000 |
| 977 | for i in range(K): |
| 978 | f.write(val) |
| 979 | |
| 980 | buf = f.getvalue() |
| 981 | assert len(buf) == len(val) * K |
| 982 | assert buf.to_pybytes() == val * K |
| 983 | |
| 984 | |
| 985 | def test_inmemory_write_after_closed(): |
nothing calls this directly
no test coverage detected