Exclude ps1 modules from the TestModules unittest

Fixes #7864
This commit is contained in:
James Cammarata 2014-06-20 10:12:14 -05:00
parent bbba99d545
commit 32aa948dd0

View file

@ -15,6 +15,8 @@ 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:
(path, ext) = os.path.splitext(filename)
if ext != ".ps1":
module_list.append(os.path.join(dirpath, filename)) module_list.append(os.path.join(dirpath, filename))
return module_list return module_list