MCPcopy Create free account
hub / github.com/pytest-dev/pytest / get_last_failed_paths

Method get_last_failed_paths

src/_pytest/cacheprovider.py:301–305  ·  view source on GitHub ↗

Return a set with all Paths()s of the previously failed nodeids.

(self)

Source from the content-addressed store, hash-verified

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:

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected