Method
__init__
(
self,
msg: Optional[str] = None,
pytrace: bool = True,
allow_module_level: bool = False,
*,
_use_item_location: bool = False,
)
Source from the content-addressed store, hash-verified
| 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 | |
| 74 | class Failed(OutcomeException): |
Callers
nothing calls this directly
Tested by
no test coverage detected