(
self,
excinfo: ExceptionInfo[BaseException],
indent: int = 4,
markall: bool = False,
)
| 757 | return lines |
| 758 | |
| 759 | def get_exconly( |
| 760 | self, |
| 761 | excinfo: ExceptionInfo[BaseException], |
| 762 | indent: int = 4, |
| 763 | markall: bool = False, |
| 764 | ) -> List[str]: |
| 765 | lines = [] |
| 766 | indentstr = " " * indent |
| 767 | # Get the real exception information out. |
| 768 | exlines = excinfo.exconly(tryshort=True).split("\n") |
| 769 | failindent = self.fail_marker + indentstr[1:] |
| 770 | for line in exlines: |
| 771 | lines.append(failindent + line) |
| 772 | if not markall: |
| 773 | failindent = indentstr |
| 774 | return lines |
| 775 | |
| 776 | def repr_locals(self, locals: Mapping[str, object]) -> Optional["ReprLocals"]: |
| 777 | if self.showlocals: |
no test coverage detected