Fix invalid name pylint report.

This commit is contained in:
Benjamin Drung 2010-12-27 22:46:16 +01:00
parent cfbc5c16cd
commit fd667bdd5f
2 changed files with 4 additions and 4 deletions

View File

@ -50,10 +50,10 @@ class HelpTestCase(unittest.TestCase):
@classmethod
def populate(cls):
for script in setup.scripts:
setattr(cls, 'test_' + script, cls.makeHelpTester(script))
setattr(cls, 'test_' + script, cls.make_help_tester(script))
@classmethod
def makeHelpTester(cls, script):
def make_help_tester(cls, script):
def tester(self):
if script in BLACKLIST:
raise unittest.SkipTest("Blacklisted: " + BLACKLIST[script])

View File

@ -53,8 +53,8 @@ class PylintTestCase(unittest.TestCase):
detected_in = line
continue
for r in WHITELIST:
if r.search(line):
for reg_exp in WHITELIST:
if reg_exp.search(line):
break
else:
filtered_out.append(detected_in)