()
| 528 | |
| 529 | @contextmanager |
| 530 | def assert_arrow_memory_doesnt_increase(): |
| 531 | import gc |
| 532 | |
| 533 | gc.collect() |
| 534 | previous_allocated_memory = pa.total_allocated_bytes() |
| 535 | yield |
| 536 | assert pa.total_allocated_bytes() - previous_allocated_memory <= 0, "Arrow memory wasn't expected to increase." |
| 537 | |
| 538 | |
| 539 | def is_rng_equal(rng1, rng2): |
no outgoing calls