()
| 112 | |
| 113 | |
| 114 | def test_infinite_iterator(): |
| 115 | expected = pa.array((0, 1, 2)) |
| 116 | arr1 = pa.array(itertools.count(0), size=3) |
| 117 | assert arr1.equals(expected) |
| 118 | # Same with explicit type |
| 119 | arr1 = pa.array(itertools.count(0), type=pa.int64(), size=3) |
| 120 | assert arr1.equals(expected) |
| 121 | |
| 122 | |
| 123 | def test_failing_iterator(): |