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

Function test_pickle_exception

Lib/test/test_enum.py:170–173  ·  view source on GitHub ↗
(assertion, exception, obj)

Source from the content-addressed store, hash-verified

168 assertion(loads(dumps(source, protocol=protocol)), target)
169
170def test_pickle_exception(assertion, exception, obj):
171 for protocol in range(HIGHEST_PROTOCOL + 1):
172 with assertion(exception):
173 dumps(obj, protocol=protocol)
174
175class TestHelpers(unittest.TestCase):
176 # _is_descriptor, _is_sunder, _is_dunder

Callers 1

test_pickle_explodesMethod · 0.85

Calls 1

dumpsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…