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

Function test_chdir_double_undo

testing/test_monkeypatch.py:287–292  ·  view source on GitHub ↗
(mp: MonkeyPatch, tmp_path: Path)

Source from the content-addressed store, hash-verified

285
286
287def test_chdir_double_undo(mp: MonkeyPatch, tmp_path: Path) -> None:
288 mp.chdir(str(tmp_path))
289 mp.undo()
290 os.chdir(tmp_path)
291 mp.undo()
292 assert os.getcwd() == str(tmp_path)
293
294
295def test_issue185_time_breaks(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 2

undoMethod · 0.80
chdirMethod · 0.45

Tested by

no test coverage detected