Disable some PyLint warnings.

This commit is contained in:
Pedro Algarvio 2013-11-27 13:07:24 +00:00
parent aa8ead9897
commit 6e596738de

View file

@ -98,7 +98,7 @@ def run_tests(*test_cases, **kwargs):
help='Disable colour printing.'
)
def run_testcase(self, testcase, needs_daemon=True):
def run_testcase(self, testcase, needs_daemon=True): # pylint: disable=W0221
if needs_daemon:
print('Setting up Salt daemons to execute tests')
with TestDaemon(self):
@ -461,7 +461,7 @@ class TestDaemon(object):
sys.stdout.flush()
time.sleep(1)
now = datetime.now()
else:
else: # pylint: disable=W0120
sys.stdout.write(
'\n {RED_BOLD}*{ENDC} ERROR: Failed to get information '
'back\n'.format(**self.colors)
@ -524,7 +524,7 @@ class TestDaemon(object):
time.sleep(1)
now = datetime.now()
else:
else: # pylint: disable=W0120
print(
'\n {RED_BOLD}*{ENDC} WARNING: Minions failed to connect '
'back. Tests requiring them WILL fail'.format(**self.colors)