(pickle_module)
| 419 | |
| 420 | |
| 421 | def test_buffer_memoryview(pickle_module): |
| 422 | val = b'some data' |
| 423 | |
| 424 | buf = pa.py_buffer(val) |
| 425 | assert isinstance(buf, pa.Buffer) |
| 426 | assert not buf.is_mutable |
| 427 | assert buf.is_cpu |
| 428 | |
| 429 | result = memoryview(buf) |
| 430 | assert result == val |
| 431 | |
| 432 | check_buffer_pickling(buf, pickle_module) |
| 433 | |
| 434 | |
| 435 | def test_buffer_bytearray(pickle_module): |
nothing calls this directly
no test coverage detected