MCPcopy Index your code
hub / github.com/python/cpython / test_pickle_dump_load

Function test_pickle_dump_load

Lib/test/test_enum.py:164–168  ·  view source on GitHub ↗
(assertion, source, target=None)

Source from the content-addressed store, hash-verified

162 pass
163
164def test_pickle_dump_load(assertion, source, target=None):
165 if target is None:
166 target = source
167 for protocol in range(HIGHEST_PROTOCOL + 1):
168 assertion(loads(dumps(source, protocol=protocol)), target)
169
170def test_pickle_exception(assertion, exception, obj):
171 for protocol in range(HIGHEST_PROTOCOL + 1):

Calls 2

loadsFunction · 0.50
dumpsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…