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

Method _persistent_load

Lib/test/test_pickle.py:327–331  ·  view source on GitHub ↗
(subself, pid)

Source from the content-addressed store, hash-verified

325 def persistent_load(subself, pid):
326 raise AssertionError('should never be called')
327 def _persistent_load(subself, pid):
328 called.append(pid)
329 with self.assertRaises(self.persistent_load_error):
330 super().persistent_load(pid)
331 return pid
332
333 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
334 unpickler = PersUnpickler(io.BytesIO(self.dumps('abc', proto)))

Callers

nothing calls this directly

Calls 4

superClass · 0.85
appendMethod · 0.45
assertRaisesMethod · 0.45
persistent_loadMethod · 0.45

Tested by

no test coverage detected