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

Method test_wrong_target

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

Source from the content-addressed store, hash-verified

67 monkeypatch.delattr("_pytest.config.Config")
68
69 def test_wrong_target(self, monkeypatch: MonkeyPatch) -> None:
70 with pytest.raises(TypeError):
71 monkeypatch.setattr(None, None) # type: ignore[call-overload]
72
73 def test_unknown_import(self, monkeypatch: MonkeyPatch) -> None:
74 with pytest.raises(ImportError):

Callers

nothing calls this directly

Calls 1

setattrMethod · 0.80

Tested by

no test coverage detected