clear the cache once per file rather than after every test with pytest
Merge pull request #8151 from pbrady/pytest_clear_cache

clear the cache at the start of file [pytest]