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

Class Skipped

src/_pytest/outcomes.py:54–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53
54class Skipped(OutcomeException):
55 # XXX hackish: on 3k we fake to live in the builtins
56 # in order to have Skipped exception printing shorter/nicer
57 __module__ = "builtins"
58
59 def __init__(
60 self,
61 msg: Optional[str] = None,
62 pytrace: bool = True,
63 allow_module_level: bool = False,
64 *,
65 _use_item_location: bool = False,
66 ) -> None:
67 super().__init__(msg=msg, pytrace=pytrace)
68 self.allow_module_level = allow_module_level
69 # If true, the skip location is reported as the item's location,
70 # instead of the place that raises the exception/calls skip().
71 self._use_item_location = _use_item_location
72
73
74class Failed(OutcomeException):

Callers 2

skipFunction · 0.85
importorskipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected