From 32aa948dd0d26f61d09315c4f68f3861b4449397 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 20 Jun 2014 10:12:14 -0500 Subject: [PATCH] Exclude ps1 modules from the TestModules unittest Fixes #7864 --- test/units/TestModules.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/units/TestModules.py b/test/units/TestModules.py index 54e3ec3213f..83c2b7c3986 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):