From 22ae21ab43c1f94807e282b7d50987af13a6a9d6 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 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):