MCPcopy
hub / github.com/pytest-dev/pytest / load

Method load

src/_pytest/_py/path.py:392–400  ·  src/_pytest/_py/path.py::LocalPath.load

(deprecated) return object unpickled from self.read()

(self)

Source from the content-addressed store, hash-verified

390 f.close()
391
392 def load(self):
393 class="st">""class="st">"(deprecated) return object unpickled from self.read()"class="st">""
394 f = self.open(class="st">"rb")
395 try:
396 import pickle
397
398 return error.checked_call(pickle.load, f)
399 finally:
400 f.close()
401
402 def move(self, target):
403 class="st">""class="st">"Move this path to target."class="st">""

Callers 2

getMethod · 0.45
_read_pycFunction · 0.45

Calls 3

openMethod · 0.95
checked_callMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected