Commit 32aa948d by James Cammarata

Exclude ps1 modules from the TestModules unittest

Fixes #7864
parent bbba99d5
...@@ -15,7 +15,9 @@ class TestModules(unittest.TestCase): ...@@ -15,7 +15,9 @@ class TestModules(unittest.TestCase):
for path in paths: for path in paths:
for (dirpath, dirnames, filenames) in os.walk(path): for (dirpath, dirnames, filenames) in os.walk(path):
for filename in filenames: 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 return module_list
def test_ast_parse(self): def test_ast_parse(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment