| 3982 | |
| 3983 | # ensure the return value is an Array |
| 3984 | class MyArrayInvalid: |
| 3985 | def __init__(self, data): |
| 3986 | self.data = data |
| 3987 | |
| 3988 | def __arrow_array__(self, type=None): |
| 3989 | return np.array(self.data) |
| 3990 | |
| 3991 | arr = MyArrayInvalid(np.array([1, 2, 3], dtype='int64')) |
| 3992 | with pytest.raises(TypeError): |
no outgoing calls