()
| 3120 | |
| 3121 | @pytest.mark.filterwarnings("ignore:the matrix subclass") |
| 3122 | def test_asanyarray(): |
| 3123 | x = np.matrix([1, 2, 3]) |
| 3124 | dx = da.asanyarray(x) |
| 3125 | assert dx.numblocks == (1, 1) |
| 3126 | chunks = compute_as_if_collection(Array, dx.dask, dx.__dask_keys__()) |
| 3127 | assert isinstance(chunks[0][0], np.matrix) |
| 3128 | assert da.asanyarray(dx) is dx |
| 3129 | |
| 3130 | |
| 3131 | def test_asanyarray_dataframe(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…