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

Method test_delattr

testing/test_monkeypatch.py:86–90  ·  view source on GitHub ↗
(self, monkeypatch: MonkeyPatch)

Source from the content-addressed store, hash-verified

84 assert os.path.qweqwe == 42 # type: ignore
85
86 def test_delattr(self, monkeypatch: MonkeyPatch) -> None:
87 monkeypatch.delattr("os.path.abspath")
88 assert not hasattr(os.path, "abspath")
89 monkeypatch.undo()
90 assert os.path.abspath
91
92
93def test_delattr() -> None:

Callers

nothing calls this directly

Calls 2

delattrMethod · 0.80
undoMethod · 0.80

Tested by

no test coverage detected