(self)
| 458 | return sorted(items, key=lambda item: item.path.stat().st_mtime, reverse=True) |
| 459 | |
| 460 | def pytest_sessionfinish(self) -> None: |
| 461 | config = self.config |
| 462 | if config.getoption(class="st">"cacheshow") or hasattr(config, class="st">"workerinput"): |
| 463 | return |
| 464 | |
| 465 | if config.getoption(class="st">"collectonly"): |
| 466 | return |
| 467 | |
| 468 | assert config.cache is not None |
| 469 | config.cache.set(class="st">"cache/nodeids", sorted(self.cached_nodeids)) |
| 470 | |
| 471 | |
| 472 | def pytest_addoption(parser: Parser) -> None: |