| 37 | |
| 38 | |
| 39 | class 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 | |
| 59 | class Failed(OutcomeException): |
no outgoing calls
no test coverage detected