diff --git a/pavelib/utils/envs.py b/pavelib/utils/envs.py index 99d9b1e48b..739f846a9c 100644 --- a/pavelib/utils/envs.py +++ b/pavelib/utils/envs.py @@ -203,7 +203,8 @@ class Env(object): # Directories used for common/lib/ tests LIB_TEST_DIRS = [] for item in (REPO_ROOT / "common/lib").listdir(): - if (REPO_ROOT / 'common/lib' / item).isdir(): + dir_name = (REPO_ROOT / 'common/lib' / item) + if dir_name.isdir() and not dir_name.endswith(('__pycache__', '.cache')): LIB_TEST_DIRS.append(path("common/lib") / item.basename()) LIB_TEST_DIRS.append(path("pavelib/paver_tests"))