MCPcopy
hub / github.com/pytest-dev/pytest / test_issue1338_name_resolving

Function test_issue1338_name_resolving

testing/test_monkeypatch.py:421–427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

419
420
421def test_issue1338_name_resolving() -> None:
422 pytest.importorskip("requests")
423 monkeypatch = MonkeyPatch()
424 try:
425 monkeypatch.delattr("requests.sessions.Session.request")
426 finally:
427 monkeypatch.undo()
428
429
430def 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