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

Function mp

testing/test_monkeypatch.py:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17@pytest.fixture
18def mp() -> Generator[MonkeyPatch]:
19 cwd = os.getcwd()
20 sys_path = list(sys.path)
21 yield MonkeyPatch()
22 sys.path[:] = sys_path
23 os.chdir(cwd)
24
25
26def test_setattr() -> None:

Callers

nothing calls this directly

Calls 2

MonkeyPatchClass · 0.90
chdirMethod · 0.45

Tested by

no test coverage detected