MCPcopy Create free account
hub / github.com/dask/dask / test_ensure_bytes_ndarray

Function test_ensure_bytes_ndarray

dask/tests/test_utils.py:60–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59
60def test_ensure_bytes_ndarray():
61 np = pytest.importorskip("numpy")
62 result = ensure_bytes(np.arange(12))
63 assert isinstance(result, bytes)
64
65
66def test_ensure_bytes_pyarrow_buffer():

Callers

nothing calls this directly

Calls 2

ensure_bytesFunction · 0.90
arangeMethod · 0.45

Tested by

no test coverage detected