summaryrefslogtreecommitdiff
path: root/tests/test_functional.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_functional.py')
-rw-r--r--tests/test_functional.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py
index 9c10c8514..0025253ea 100644
--- a/tests/test_functional.py
+++ b/tests/test_functional.py
@@ -375,9 +375,12 @@ class LintModuleOutputUpdate(LintModuleTest):
def get_tests():
input_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "functional")
suite = []
- for fname in os.listdir(input_dir):
- if fname != "__init__.py" and fname.endswith(".py"):
- suite.append(FunctionalTestFile(input_dir, fname))
+ for dirpath, dirnames, filenames in os.walk(input_dir):
+ if dirpath.endswith("__pycache__"):
+ continue
+ for filename in filenames:
+ if filename != "__init__.py" and filename.endswith(".py"):
+ suite.append(FunctionalTestFile(dirpath, filename))
return suite