Commit 819dfb21 authored by Petr Špaček's avatar Petr Špaček

pylint: fix unused-argument for good

parent db583b5f
......@@ -195,7 +195,7 @@ def _fixme_prebind_hack(sockfamily, childaddr):
sock.listen(5)
def setup_daemon_files(tmpdir, prog_cfg, template_ctx):
def setup_daemon_files(prog_cfg, template_ctx):
name = prog_cfg['name']
# add program-specific variables
subst = template_ctx.copy()
......@@ -278,7 +278,7 @@ def play_object(path, args, prog_cfgs):
daemons = []
for prog_cfg in prog_cfgs['programs']:
daemon_env = setup_daemon_env(prog_cfg, tmpdir)
setup_daemon_files(tmpdir, prog_cfg, template_ctx)
setup_daemon_files(prog_cfg, template_ctx)
daemon_proc = run_daemon(prog_cfg, daemon_env)
daemons.append({'proc': daemon_proc, 'cfg': prog_cfg})
conncheck_daemon(daemon_proc, prog_cfg, template_ctx['_SOCKET_FAMILY'])
......@@ -311,7 +311,7 @@ def play_object(path, args, prog_cfgs):
raise ValueError('the scenario does not define all necessary answers (see error log)')
def test_platform(*args):
def test_platform():
if sys.platform == 'windows':
raise NotImplementedError('not supported at all on Windows')
......
......@@ -561,7 +561,7 @@ class Step:
return self.__check_answer(ctx)
elif self.type == 'TIME_PASSES':
self.log.info('')
return self.__time_passes(ctx)
return self.__time_passes()
elif self.type == 'REPLY' or self.type == 'MOCK':
self.log.info('')
elif self.type == 'LOG':
......@@ -589,7 +589,7 @@ class Step:
self.log.debug("answer: %s", ctx.last_answer.to_text())
expected.match(ctx.last_answer)
def __replay(self, ctx, chunksize=8):
def __replay(self, ctx):
nqueries = len(self.queries)
if len(self.args) > 0 and self.args[0].isdigit():
nqueries = int(self.args.pop(0))
......@@ -675,7 +675,7 @@ class Step:
self.answer = None
ctx.last_answer = self.answer
def __time_passes(self, ctx):
def __time_passes(self):
""" Modify system time. """
time_file = open(os.environ["FAKETIME_TIMESTAMP_FILE"], 'r')
line = time_file.readline().strip()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment