(arr, like)
| 159 | "like", [np.arange(5), cupy.arange(5), da.arange(5), da.from_array(cupy.arange(5))] |
| 160 | ) |
| 161 | def test_asanyarray(arr, like): |
| 162 | if isinstance(like, np.ndarray) and isinstance( |
| 163 | da.utils.meta_from_array(arr), cupy.ndarray |
| 164 | ): |
| 165 | with pytest.raises(TypeError): |
| 166 | a = da.utils.asanyarray_safe(arr, like=like) |
| 167 | else: |
| 168 | a = da.utils.asanyarray_safe(arr, like=like) |
| 169 | assert type(a) is type(like) |
| 170 | |
| 171 | |
| 172 | def test_vindex(): |
nothing calls this directly
no outgoing calls
no test coverage detected