()
| 3110 | |
| 3111 | @pytest.mark.filterwarnings("ignore:the matrix subclass") |
| 3112 | def test_asanyarray(): |
| 3113 | x = np.matrix([1, 2, 3]) |
| 3114 | dx = da.asanyarray(x) |
| 3115 | assert dx.numblocks == (1, 1) |
| 3116 | chunks = compute_as_if_collection(Array, dx.dask, dx.__dask_keys__()) |
| 3117 | assert isinstance(chunks[0][0], np.matrix) |
| 3118 | assert da.asanyarray(dx) is dx |
| 3119 | |
| 3120 | |
| 3121 | def test_asanyarray_dataframe(): |
nothing calls this directly
no test coverage detected