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

Class Skipped

src/_pytest/outcomes.py:39–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39class Skipped(OutcomeException):
40 # XXX hackish: on 3k we fake to live in the builtins
41 # in order to have Skipped exception printing shorter/nicer
42 __module__ = "builtins"
43
44 def __init__(
45 self,
46 msg: str | None = None,
47 pytrace: bool = True,
48 allow_module_level: bool = False,
49 *,
50 _use_item_location: bool = False,
51 ) -> None:
52 super().__init__(msg=msg, pytrace=pytrace)
53 self.allow_module_level = allow_module_level
54 # If true, the skip location is reported as the item's location,
55 # instead of the place that raises the exception/calls skip().
56 self._use_item_location = _use_item_location
57
58
59class Failed(OutcomeException):

Callers 2

__call__Method · 0.85
importorskipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected