fromNedbatchelder17 hours agoPythonTesting: exceptions and cachesUse parameterized tests to unify success and exception cases, and clear or reset lru_cache between tests to avoid cached state leaking across tests.