MCPcopy
hub / github.com/pytest-dev/pytest / pytest_sessionfinish

Method pytest_sessionfinish

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

Source from the content-addressed store, hash-verified

413 return res
414
415 def pytest_sessionfinish(self, session: Session) -> None:
416 config = self.config
417 if config.getoption("cacheshow") or hasattr(config, "workerinput"):
418 return
419
420 assert config.cache is not None
421 saved_lastfailed = config.cache.get("cache/lastfailed", {})
422 if saved_lastfailed != self.lastfailed:
423 config.cache.set("cache/lastfailed", self.lastfailed)
424
425
426class NFPlugin:

Callers

nothing calls this directly

Calls 3

getoptionMethod · 0.80
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected