mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
Fix invalid name pylint report.
This commit is contained in:
parent
cfbc5c16cd
commit
fd667bdd5f
@ -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])
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user