| 125 | |
| 126 | |
| 127 | class ConftestImportFailure(Exception): |
| 128 | def __init__( |
| 129 | self, |
| 130 | path: pathlib.Path, |
| 131 | *, |
| 132 | cause: Exception, |
| 133 | ) -> None: |
| 134 | self.path = path |
| 135 | self.cause = cause |
| 136 | |
| 137 | def __str__(self) -> str: |
| 138 | return f"{type(self.cause).__name__}: {self.cause} (from {self.path})" |
| 139 | |
| 140 | |
| 141 | def filter_traceback_for_conftest_import_failure( |
no outgoing calls