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

Update module test code to avoid pycs (that are not used)

This commit is contained in:
Michael DeHaan 2014-09-26 10:57:12 -04:00
parent 25cc79e2db
commit f35ed8a6c0

View file

@ -16,7 +16,7 @@ class TestModules(unittest.TestCase):
for (dirpath, dirnames, filenames) in os.walk(path):
for filename in filenames:
(path, ext) = os.path.splitext(filename)
if ext != ".ps1":
if ext == ".py":
module_list.append(os.path.join(dirpath, filename))
return module_list