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

Method add_skip

src/_pytest/unittest.py:319–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317 from unittest.case import _SubTest # type: ignore[attr-defined]
318
319 def add_skip() -> None:
320 try:
321 raise skip.Exception(reason, _use_item_location=True)
322 except skip.Exception:
323 self._addexcinfo(sys.exc_info())
324
325 if not handle_subtests:
326 add_skip()

Callers

nothing calls this directly

Calls 1

_addexcinfoMethod · 0.95

Tested by

no test coverage detected