(mp: MonkeyPatch)
| 283 | |
| 284 | |
| 285 | def test_syspath_prepend_double_undo(mp: MonkeyPatch) -> None: |
| 286 | old_syspath = sys.path[:] |
| 287 | try: |
| 288 | mp.syspath_prepend("hello world") |
| 289 | mp.undo() |
| 290 | sys.path.append("more hello world") |
| 291 | mp.undo() |
| 292 | assert sys.path[-1] == "more hello world" |
| 293 | finally: |
| 294 | sys.path[:] = old_syspath |
| 295 | |
| 296 | |
| 297 | def test_chdir_with_path_local(mp: MonkeyPatch, tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected