diff --git a/test/units/TestModules.py b/test/units/TestModules.py index 54e3ec3213..83c2b7c398 100644 --- a/test/units/TestModules.py +++ b/test/units/TestModules.py @@ -15,7 +15,9 @@ class TestModules(unittest.TestCase): for path in paths: for (dirpath, dirnames, filenames) in os.walk(path): for filename in filenames: - module_list.append(os.path.join(dirpath, filename)) + (path, ext) = os.path.splitext(filename) + if ext != ".ps1": + module_list.append(os.path.join(dirpath, filename)) return module_list def test_ast_parse(self):