(p, exist_ok=False, *, exc)
| 1703 | |
| 1704 | # monkeypatch to simulate all error situations |
| 1705 | def fake_mkdir(p, exist_ok=False, *, exc): |
| 1706 | assert isinstance(p, Path) |
| 1707 | raise exc |
| 1708 | |
| 1709 | monkeypatch.setattr(os, "makedirs", partial(fake_mkdir, exc=FileNotFoundError())) |
| 1710 | assert not try_makedirs(p) |
nothing calls this directly
no outgoing calls
no test coverage detected