()
| 121 | |
| 122 | |
| 123 | def test_failing_iterator(): |
| 124 | with pytest.raises(ZeroDivisionError): |
| 125 | pa.array((1 // 0 for x in range(10))) |
| 126 | # ARROW-17253 |
| 127 | with pytest.raises(ZeroDivisionError): |
| 128 | pa.array((1 // 0 for x in range(10)), size=10) |
| 129 | |
| 130 | |
| 131 | def test_failing_iterator_does_not_leak(): |