(dtype)
| 419 | |
| 420 | @pytest.mark.parametrize("dtype", [object, str]) |
| 421 | def test_from_array_string_conversion(dtype): |
| 422 | arr = np.array(["a", "b", "c", "d"], dtype=dtype) |
| 423 | result = from_array(arr, chunksize=2) |
| 424 | dtype = "string" if pyarrow_strings_enabled() else "object" |
| 425 | assert result.dtype == dtype |
| 426 | assert result.compute().dtype == dtype |
| 427 | |
| 428 | |
| 429 | def test_from_dask_array(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…