()
| 458 | |
| 459 | @pytest.mark.numpy |
| 460 | def test_array_getitem_numpy_scalars(): |
| 461 | arr = pa.array(range(10, 15)) |
| 462 | lst = arr.to_pylist() |
| 463 | # check that numpy scalars are supported |
| 464 | for idx in range(-len(arr), len(arr)): |
| 465 | assert arr[np.int32(idx)].as_py() == lst[idx] |
| 466 | |
| 467 | |
| 468 | def test_to_pylist_bulk_paths(): |