Browse Source

filter __pycache__ folders

Julien Schueller 8 years ago
parent
commit
41239c4457
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tests/test_dynamic_loading.py

+ 1 - 1
Tests/test_dynamic_loading.py

@@ -98,7 +98,7 @@ class TestDynamicLoading(unittest.TestCase):
         # we keep only package. Because we have _init_.py or other stuff in what listdir returned
         # we keep only package. Because we have _init_.py or other stuff in what listdir returned
         packages_in_folder = list()
         packages_in_folder = list()
         for el in el_folder:
         for el in el_folder:
-            if os.path.isdir(folder + os.sep + el):
+            if os.path.isdir(folder + os.sep + el) and not '__pycache__' in el:
                 packages_in_folder.append(el)
                 packages_in_folder.append(el)
         return packages_in_folder
         return packages_in_folder