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

Method restore

src/_pytest/pytester.py:645–646  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

643 self.__saved = list(sys.path), list(sys.meta_path)
644
645 def restore(self) -> None:
646 sys.path[:], sys.meta_path[:] = self.__saved
647
648
649_FileContent = tuple[str | bytes, ...] | list[str | bytes] | str | bytes

Callers 4

_sys_snapshotFunction · 0.95
test_restoreMethod · 0.95
_finalizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected