()
| 21 | |
| 22 | |
| 23 | def test_device_memory_manager(): |
| 24 | mm = pa.default_cpu_memory_manager() |
| 25 | assert mm.is_cpu |
| 26 | device = mm.device |
| 27 | assert device.is_cpu |
| 28 | assert device.device_id == -1 |
| 29 | assert device.device_type == pa.DeviceAllocationType.CPU |
| 30 | assert device.type_name == "arrow::CPUDevice" |
| 31 | assert device == device |
| 32 | assert repr(device) == "<pyarrow.Device: CPUDevice()>" |
| 33 | assert repr(mm) == "<pyarrow.MemoryManager device: CPUDevice()>" |
| 34 | |
| 35 | |
| 36 | def test_buffer_device(): |
nothing calls this directly
no outgoing calls
no test coverage detected