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

Function test_normalize_pickle

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

Source from the content-addressed store, hash-verified

1479
1480
1481def test_normalize_pickle():
1482 a = APickleable()
1483 tokenize(a)
1484 # We're pickling multiple times because pickle is caching things on
1485 # instances such that subsequent pickles can yield different results.
1486 # For a trivial object like this, this should only happen twice
1487 assert APickleable.counter <= 2
1488
1489
1490def test_tokenize_recursive_respects_ensure_deterministic():

Callers

nothing calls this directly

Calls 2

tokenizeFunction · 0.90
APickleableClass · 0.85

Tested by

no test coverage detected