MCPcopy Create free account
hub / github.com/pytest-dev/pytest / mp

Function mp

testing/test_monkeypatch.py:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

MonkeyPatchClass · 0.90
chdirMethod · 0.45

Tested by

no test coverage detected