(self, session: Session)
| 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 | |
| 426 | class NFPlugin: |