pytest-cache
pytest plugin with mechanisms for caching across test runs
Decision gist · record as of 2026-08-14
No. This package is abandoned (last release 2013-06-04) and its functionality is now built into pytest natively. Installing it risks incompatibility with modern pytest versions and introduces unmaintained code into your test infrastructure. Use pytest's native cache support instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- This package is abandoned and may be incompatible with modern pytest versions; native cache functionality is now integrated into pytest itself.
- High install friction: the package is abandoned (last release 2013-06-04) with no maintenance signal.
- Modern pytest versions have integrated this functionality natively, making this package obsolete for current projects.
License · maintenance · safety
MIT License (permissive) — MIT License (permissive) poses no legal barrier to use, but the abandoned status and age make licensing a secondary concern compared to functionality gaps.
last release 2013-06-04 (4819 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 687,699 downloads/mo, #5,344 on PyPI
Alternatives
Verify before relying
pip install pytest-cache
# Then in conftest.py or a plugin:
def pytest_funcarg__mydata(request):
val = request.config.cache.get("example/value", None)
if val is None:
val = 42
request.config.cache.set("example/value", val)
return val- Compatibility with pytest versions released after 2013-06-04; whether API changes in modern pytest break this plugin.
- Whether the --lf and --ff flags still work as documented or have been superseded by pytest's native implementation.
- Current usability on Python 3 versions, given the package's alpha status and age.
What it is and what it does
pytest-cache is a pytest plugin that stores test execution state between runs, allowing developers to selectively rerun failed tests or prioritize failures in subsequent test sessions. It exposes a config.cache object that plugins and conftest code can use to persist arbitrary values across test invocations—useful for caching expensive computations or tracking test history.
However, this package is abandoned (last updated 2013-06-04) and its core functionality has been integrated directly into pytest itself. Modern pytest versions provide native cache support without requiring this external plugin. Installing this package on a current pytest setup risks API incompatibilities and maintenance gaps.
Use it for
- Rerun only the tests that failed in the previous test session using --lf to speed up debugging cycles.
- Run all tests but execute previously failed tests first using --ff to surface regressions early.
- Cache expensive setup computations across multiple test runs via config.cache.set() and config.cache.get().
- Inspect cached test state and values using --cache to diagnose test history and cross-run dependencies.
- Clear all cached state before CI runs using --clearcache to ensure test isolation and correctness.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
This package is abandoned (last release 2013-06-04) and its functionality is now built into pytest natively. Installing it risks incompatibility with modern pytest versions and introduces unmaintained code into your test infrastructure. Use pytest's native cache support instead.
Install
pytest-cache on PyPI
Before you install
High install friction: the package is abandoned (last release 2013-06-04) with no maintenance signal. Modern pytest versions have integrated this functionality natively, making this package obsolete for current projects.
This package is abandoned and may be incompatible with modern pytest versions; native cache functionality is now integrated into pytest itself.
License in practice
MIT License (permissive) poses no legal barrier to use, but the abandoned status and age make licensing a secondary concern compared to functionality gaps.
Quickstart
pip install pytest-cache
# Then in conftest.py or a plugin:
def pytest_funcarg__mydata(request):
val = request.config.cache.get("example/value", None)
if val is None:
val = 42
request.config.cache.set("example/value", val)
return val
Verify before relying
- Compatibility with pytest versions released after 2013-06-04; whether API changes in modern pytest break this plugin.
- Whether the --lf and --ff flags still work as documented or have been superseded by pytest's native implementation.
- Current usability on Python 3 versions, given the package's alpha status and age.
Package facts
| License | MIT License permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 4,819 days since the last release |
| First released | |
| Downloads | 687,699 / month, #5,344 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Software Development :: LibrariesTopic :: Software Development :: TestingTopic :: Utilities |
Evidence: pytest-cache-1.0.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “rerun failed tests”
- pytest-cacheA pytest plugin that persists test state across runs, enabling rerun…
- pytest-retrypytest-retry is a pytest plugin that automatically retries failed…
- pytest-rerunfailuresA pytest plugin that automatically reruns failed tests to eliminate…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also pytest-rerunfailures · rtest · pytest-retry · allpairspy · pytest-assume · pytest-check · pytest-watch · pytest-only · pytest-skip-slow · tavern