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

Method addSkip

src/_pytest/unittest.py:255–259  ·  view source on GitHub ↗
(self, testcase: "unittest.TestCase", reason: str)

Source from the content-addressed store, hash-verified

253 self._addexcinfo(rawexcinfo)
254
255 def addSkip(self, testcase: "unittest.TestCase", reason: str) -> None:
256 try:
257 raise pytest.skip.Exception(reason, _use_item_location=True)
258 except skip.Exception:
259 self._addexcinfo(sys.exc_info())
260
261 def addExpectedFailure(
262 self,

Callers

nothing calls this directly

Calls 1

_addexcinfoMethod · 0.95

Tested by

no test coverage detected