(self)
| 193 | assert_equal(result, expected.view(OverrideSub)) |
| 194 | |
| 195 | def test_no_wrapper(self): |
| 196 | # This shouldn't happen unless a user intentionally calls |
| 197 | # __array_function__ with invalid arguments, but check that we raise |
| 198 | # an appropriate error all the same. |
| 199 | array = np.array(1) |
| 200 | func = lambda x: x |
| 201 | with assert_raises_regex(AttributeError, '_implementation'): |
| 202 | array.__array_function__(func=func, types=(np.ndarray,), |
| 203 | args=(array,), kwargs={}) |
| 204 | |
| 205 | |
| 206 | class TestArrayFunctionDispatch: |
nothing calls this directly
no test coverage detected