5 class Test_Pyflakes(object):
8 topdir = os.path.dirname(os.path.realpath(__file__))
11 for folder, subfolders, files in os.walk(topdir):
12 if 'migrations' in subfolders:
13 subfolders.remove('migrations')
16 if not file.endswith('.py'):
18 pythonfiles += [os.path.join(folder, file)]
21 def test_pyflakes(self, pyfiles):
23 assert pyflakes.api.checkPath(file) == 0