| 2933 | def test_wrap(self): |
| 2934 | |
| 2935 | class with_wrap: |
| 2936 | def __array__(self): |
| 2937 | return np.zeros(1) |
| 2938 | |
| 2939 | def __array_wrap__(self, arr, context): |
| 2940 | r = with_wrap() |
| 2941 | r.arr = arr |
| 2942 | r.context = context |
| 2943 | return r |
| 2944 | |
| 2945 | a = with_wrap() |
| 2946 | x = ncu.minimum(a, a) |
no outgoing calls