(
item: Item, call: CallInfo[None], excinfo: ExceptionInfo[BaseException]
)
| 257 | |
| 258 | |
| 259 | def _format_failed_longrepr( |
| 260 | item: Item, call: CallInfo[None], excinfo: ExceptionInfo[BaseException] |
| 261 | ): |
| 262 | if call.when == "call": |
| 263 | longrepr = item.repr_failure(excinfo) |
| 264 | else: |
| 265 | # Exception in setup or teardown. |
| 266 | longrepr = item._repr_failure_py( |
| 267 | excinfo, style=item.config.getoption("tbstyle", "auto") |
| 268 | ) |
| 269 | return longrepr |
| 270 | |
| 271 | |
| 272 | def _format_exception_group_all_skipped_longrepr( |
no test coverage detected