(self, monkeypatch: MonkeyPatch)
| 107 | monkeypatch.undo() |
| 108 | |
| 109 | def test_delattr(self, monkeypatch: MonkeyPatch) -> None: |
| 110 | with monkeypatch.context() as mp: |
| 111 | mp.delattr("os.path.abspath") |
| 112 | assert not hasattr(os.path, "abspath") |
| 113 | mp.undo() |
| 114 | assert os.path.abspath # type:ignore[truthy-function] |
| 115 | |
| 116 | |
| 117 | def test_delattr() -> None: |