()
| 105 | |
| 106 | |
| 107 | def test_set_memory_pool(): |
| 108 | old_pool = pa.default_memory_pool() |
| 109 | pool = pa.proxy_memory_pool(old_pool) |
| 110 | pa.set_memory_pool(pool) |
| 111 | try: |
| 112 | allocated_before = pool.bytes_allocated() |
| 113 | with allocate_bytes(None, 512): |
| 114 | assert pool.bytes_allocated() == allocated_before + 512 |
| 115 | assert pool.bytes_allocated() == allocated_before |
| 116 | finally: |
| 117 | pa.set_memory_pool(old_pool) |
| 118 | |
| 119 | |
| 120 | def test_default_backend_name(): |
nothing calls this directly
no test coverage detected