(mp: MonkeyPatch)
| 256 | |
| 257 | |
| 258 | def test_syspath_prepend_double_undo(mp: MonkeyPatch) -> None: |
| 259 | old_syspath = sys.path[:] |
| 260 | try: |
| 261 | mp.syspath_prepend("hello world") |
| 262 | mp.undo() |
| 263 | sys.path.append("more hello world") |
| 264 | mp.undo() |
| 265 | assert sys.path[-1] == "more hello world" |
| 266 | finally: |
| 267 | sys.path[:] = old_syspath |
| 268 | |
| 269 | |
| 270 | def test_chdir_with_path_local(mp: MonkeyPatch, tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected