mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +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
|
@classmethod
|
||||||
def populate(cls):
|
def populate(cls):
|
||||||
for script in setup.scripts:
|
for script in setup.scripts:
|
||||||
setattr(cls, 'test_' + script, cls.makeHelpTester(script))
|
setattr(cls, 'test_' + script, cls.make_help_tester(script))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def makeHelpTester(cls, script):
|
def make_help_tester(cls, script):
|
||||||
def tester(self):
|
def tester(self):
|
||||||
if script in BLACKLIST:
|
if script in BLACKLIST:
|
||||||
raise unittest.SkipTest("Blacklisted: " + BLACKLIST[script])
|
raise unittest.SkipTest("Blacklisted: " + BLACKLIST[script])
|
||||||
|
@ -53,8 +53,8 @@ class PylintTestCase(unittest.TestCase):
|
|||||||
detected_in = line
|
detected_in = line
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for r in WHITELIST:
|
for reg_exp in WHITELIST:
|
||||||
if r.search(line):
|
if reg_exp.search(line):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
filtered_out.append(detected_in)
|
filtered_out.append(detected_in)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user