From fd667bdd5ffa24036480be611e63884a49ffc23a Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Mon, 27 Dec 2010 22:46:16 +0100 Subject: [PATCH] Fix invalid name pylint report. --- ubuntutools/test/test_help.py | 4 ++-- ubuntutools/test/test_pylint.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ubuntutools/test/test_help.py b/ubuntutools/test/test_help.py index c374c50..4f402d1 100644 --- a/ubuntutools/test/test_help.py +++ b/ubuntutools/test/test_help.py @@ -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]) diff --git a/ubuntutools/test/test_pylint.py b/ubuntutools/test/test_pylint.py index f6230f1..d6275e9 100644 --- a/ubuntutools/test/test_pylint.py +++ b/ubuntutools/test/test_pylint.py @@ -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)