()
| 2175 | |
| 2176 | |
| 2177 | def test_read_csv_reference_cycle(): |
| 2178 | # ARROW-13187 |
| 2179 | def inner(): |
| 2180 | buf = io.BytesIO(b"a,b,c\n1,2,3\n4,5,6") |
| 2181 | table = read_csv(buf) |
| 2182 | return weakref.ref(table) |
| 2183 | |
| 2184 | with util.disabled_gc(): |
| 2185 | wr = inner() |
| 2186 | assert wr() is None |
| 2187 | |
| 2188 | |
| 2189 | @pytest.mark.parametrize("type_factory", ( |