1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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 48dbb79fbe
commit 22ae21ab43

View file

@ -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):