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

Function test_tokenize_random_state_numpy

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

Source from the content-addressed store, hash-verified

1270
1271@pytest.mark.skipif("not np")
1272def test_tokenize_random_state_numpy():
1273 a = np.random.RandomState(123)
1274 b = np.random.RandomState(123)
1275 c = np.random.RandomState(456)
1276 assert check_tokenize(a) == check_tokenize(b)
1277 assert check_tokenize(a) != check_tokenize(c)
1278 a.random()
1279 assert check_tokenize(a) != check_tokenize(b)
1280
1281
1282@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