| 2774 | |
| 2775 | def test_slicing_with_non_ndarrays(): |
| 2776 | class ARangeSlice: |
| 2777 | dtype = np.dtype("i8") |
| 2778 | ndim = 1 |
| 2779 | |
| 2780 | def __init__(self, start, stop): |
| 2781 | self.start = start |
| 2782 | self.stop = stop |
| 2783 | |
| 2784 | def __array__(self): |
| 2785 | return np.arange(self.start, self.stop) |
| 2786 | |
| 2787 | class ARangeSliceable: |
| 2788 | dtype = np.dtype("i8") |