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

Function test_issue1338_name_resolving

testing/test_monkeypatch.py:392–398  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390
391
392def test_issue1338_name_resolving() -> None:
393 pytest.importorskip("requests")
394 monkeypatch = MonkeyPatch()
395 try:
396 monkeypatch.delattr("requests.sessions.Session.request")
397 finally:
398 monkeypatch.undo()
399
400
401def test_context() -> None:

Callers

nothing calls this directly

Calls 3

delattrMethod · 0.95
undoMethod · 0.95
MonkeyPatchClass · 0.90

Tested by

no test coverage detected