(lines: list[str])
| 1350 | lines.append(f"{markup_word} [{num}] {fspath}: {reason}") |
| 1351 | |
| 1352 | def show_skipped_unfolded(lines: list[str]) -> None: |
| 1353 | skipped: list[CollectReport] = self.stats.get("skipped", []) |
| 1354 | |
| 1355 | for rep in skipped: |
| 1356 | assert rep.longrepr is not None |
| 1357 | assert isinstance(rep.longrepr, tuple), (rep, rep.longrepr) |
| 1358 | assert len(rep.longrepr) == 3, (rep, rep.longrepr) |
| 1359 | |
| 1360 | verbose_word, verbose_markup = rep._get_verbose_word_with_markup( |
| 1361 | self.config, {_color_for_type["warnings"]: True} |
| 1362 | ) |
| 1363 | markup_word = self._tw.markup(verbose_word, **verbose_markup) |
| 1364 | nodeid = _get_node_id_with_markup(self._tw, self.config, rep) |
| 1365 | line = f"{markup_word} {nodeid}" |
| 1366 | reason = rep.longrepr[2] |
| 1367 | if reason: |
| 1368 | line += " - " + str(reason) |
| 1369 | lines.append(line) |
| 1370 | |
| 1371 | def show_skipped(lines: list[str]) -> None: |
| 1372 | if self.foldskipped: |
nothing calls this directly
no test coverage detected