Return a set with all Paths()s of the previously failed nodeids.
(self)
| 299 | ) |
| 300 | |
| 301 | def get_last_failed_paths(self) -> Set[Path]: |
| 302 | """Return a set with all Paths()s of the previously failed nodeids.""" |
| 303 | rootpath = self.config.rootpath |
| 304 | result = {rootpath / nodeid.split("::")[0] for nodeid in self.lastfailed} |
| 305 | return {x for x in result if x.exists()} |
| 306 | |
| 307 | def pytest_report_collectionfinish(self) -> Optional[str]: |
| 308 | if self.active and self.config.getoption("verbose") >= 0: |