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

Function test_tokenize_numpy_array

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

Source from the content-addressed store, hash-verified

1020
1021@pytest.mark.skipif("not np")
1022def test_tokenize_numpy_array():
1023 x = np.arange(2000) # long enough to drop information in repr
1024 y = np.arange(2000)
1025 y[1000] = 0 # middle isn't printed in repr
1026 assert check_tokenize([x]) != check_tokenize([y])
1027
1028
1029@pytest.mark.skipif("not np")

Callers

nothing calls this directly

Calls 2

check_tokenizeFunction · 0.85
arangeMethod · 0.45

Tested by

no test coverage detected