()
| 518 | |
| 519 | @contextmanager |
| 520 | def assert_arrow_memory_increases(): |
| 521 | import gc |
| 522 | |
| 523 | gc.collect() |
| 524 | previous_allocated_memory = pa.total_allocated_bytes() |
| 525 | yield |
| 526 | assert pa.total_allocated_bytes() - previous_allocated_memory > 0, "Arrow memory didn't increase." |
| 527 | |
| 528 | |
| 529 | @contextmanager |
no outgoing calls