MCPcopy Index your code
hub / github.com/dask/dask / test_tokenize_random_state_numpy

Function test_tokenize_random_state_numpy

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

Source from the content-addressed store, hash-verified

1269
1270@pytest.mark.skipif("not np")
1271def test_tokenize_random_state_numpy():
1272 a = np.random.RandomState(123)
1273 b = np.random.RandomState(123)
1274 c = np.random.RandomState(456)
1275 assert check_tokenize(a) == check_tokenize(b)
1276 assert check_tokenize(a) != check_tokenize(c)
1277 a.random()
1278 assert check_tokenize(a) != check_tokenize(b)
1279
1280
1281@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

check_tokenizeFunction · 0.85
RandomStateMethod · 0.45
randomMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…