#lru_cache

[ follow ]
fromNedbatchelder
17 hours ago
Python

Testing: exceptions and caches

Use parameterized tests to unify success and exception cases, and clear or reset lru_cache between tests to avoid cached state leaking across tests.
[ Load more ]