{"library":"pytest-antilru","title":"pytest-antilru","description":"Bust functools.lru_cache when running pytest to avoid test pollution. Version 2.0.0 dropped Python 2.7 and 3.5–3.7, added Python 3.10–3.13 support, and introduced the 'lru_cache_disabled' config option. Maintained on GitHub.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pytest-antilru"],"cli":null},"imports":["import pytest_antilru"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# Install: pip install pytest-antilru\n# Then just run pytest normally; lru_cache is busted per test session.\n\ndef test_example():\n    # lru_cache will be cleared before each test\n    from mymodule import cached_func\n    assert cached_func(1) == cached_func(1)  # still works within test\n","lang":"python","description":"After installation, `pytest-antilru` automatically busts all `functools.lru_cache` caches between tests to prevent state leakage.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}