| 2866 | |
| 2867 | |
| 2868 | class MyArray: |
| 2869 | def __init__(self, x): |
| 2870 | self.x = x |
| 2871 | self.dtype = x.dtype |
| 2872 | self.shape = x.shape |
| 2873 | self.ndim = len(x.shape) |
| 2874 | |
| 2875 | def __getitem__(self, i): |
| 2876 | return self.x[i] |
| 2877 | |
| 2878 | |
| 2879 | @pytest.mark.parametrize( |
no outgoing calls