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

Function test_ensure_unicode_ndarray

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

Source from the content-addressed store, hash-verified

80
81
82def test_ensure_unicode_ndarray():
83 np = pytest.importorskip("numpy")
84 a = np.frombuffer(b"123", dtype="u1")
85 result = ensure_unicode(a)
86 assert isinstance(result, str)
87 assert result == "123"
88
89
90def test_ensure_unicode_pyarrow_buffer():

Callers

nothing calls this directly

Calls 1

ensure_unicodeFunction · 0.90

Tested by

no test coverage detected