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

Function test_tokenize_numpy_scalar

dask/tests/test_tokenize.py:152–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150
151@pytest.mark.skipif("not np")
152def test_tokenize_numpy_scalar():
153 assert check_tokenize(np.array(1.0, dtype="f8")) == check_tokenize(
154 np.array(1.0, dtype="f8")
155 )
156 assert check_tokenize(
157 np.array([(1, 2)], dtype=[("a", "i4"), ("b", "i8")])[0]
158 ) == check_tokenize(np.array([(1, 2)], dtype=[("a", "i4"), ("b", "i8")])[0])
159
160
161@pytest.mark.skipif("not np")

Callers

nothing calls this directly

Calls 1

check_tokenizeFunction · 0.85

Tested by

no test coverage detected