| 52 | |
| 53 | |
| 54 | class 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 | |
| 74 | class Failed(OutcomeException): |
no outgoing calls
no test coverage detected