(self, rep: TestReport)
| 1174 | self.print_teardown_sections(report) |
| 1175 | |
| 1176 | def print_teardown_sections(self, rep: TestReport) -> None: |
| 1177 | showcapture = self.config.option.showcapture |
| 1178 | if showcapture == "no": |
| 1179 | return |
| 1180 | for secname, content in rep.sections: |
| 1181 | if showcapture != "all" and showcapture not in secname: |
| 1182 | continue |
| 1183 | if "teardown" in secname: |
| 1184 | self._tw.sep("-", secname) |
| 1185 | if content[-1:] == "\n": |
| 1186 | content = content[:-1] |
| 1187 | self._tw.line(content) |
| 1188 | |
| 1189 | def summary_failures(self) -> None: |
| 1190 | style = self.config.option.tbstyle |
no test coverage detected