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

Function _sys_snapshot

src/_pytest/pytester.py:495–500  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

493
494@fixture
495def _sys_snapshot() -> Generator[None]:
496 snappaths = SysPathsSnapshot()
497 snapmods = SysModulesSnapshot()
498 yield
499 snapmods.restore()
500 snappaths.restore()
501
502
503@fixture

Callers

nothing calls this directly

Calls 4

restoreMethod · 0.95
restoreMethod · 0.95
SysPathsSnapshotClass · 0.85
SysModulesSnapshotClass · 0.85

Tested by

no test coverage detected