(pickle_module)
| 392 | |
| 393 | |
| 394 | def test_buffer_bytes(pickle_module): |
| 395 | val = b'some data' |
| 396 | |
| 397 | buf = pa.py_buffer(val) |
| 398 | assert isinstance(buf, pa.Buffer) |
| 399 | assert not buf.is_mutable |
| 400 | assert buf.is_cpu |
| 401 | |
| 402 | result = buf.to_pybytes() |
| 403 | assert result == val |
| 404 | |
| 405 | check_buffer_pickling(buf, pickle_module) |
| 406 | |
| 407 | |
| 408 | def test_buffer_null_data(pickle_module): |
nothing calls this directly
no test coverage detected