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

Method pytest_sessionfinish

src/_pytest/cacheprovider.py:379–387  ·  view source on GitHub ↗
(self, session: Session)

Source from the content-addressed store, hash-verified

377 self._report_status += "not deselecting items."
378
379 def pytest_sessionfinish(self, session: Session) -> None:
380 config = self.config
381 if config.getoption("cacheshow") or hasattr(config, "workerinput"):
382 return
383
384 assert config.cache is not None
385 saved_lastfailed = config.cache.get("cache/lastfailed", {})
386 if saved_lastfailed != self.lastfailed:
387 config.cache.set("cache/lastfailed", self.lastfailed)
388
389
390class NFPlugin:

Callers

nothing calls this directly

Calls 3

setMethod · 0.80
getoptionMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected