diff --git a/pytest_isort/__init__.py b/pytest_isort/__init__.py index 7446fed..e15ebad 100644 --- a/pytest_isort/__init__.py +++ b/pytest_isort/__init__.py @@ -83,9 +83,9 @@ def pytest_sessionfinish(session): # isort might not be enabled, lets check if we have a mtimes dict. if hasattr(config, '_isort_mtimes'): - cache = config.cache.get(HISTKEY, {}) + cache = config.cache.get(MTIMES_HISTKEY, {}) cache.update(config._isort_mtimes) - config.cache.set(HISTKEY, cache) + config.cache.set(MTIMES_HISTKEY, cache) try: