Permalink
Browse files

LocalBearTestHelper: Add **process_output_kwargs

Add `**process_output_kwargs` argument to `new_process_output(...)`
and `old_process_output(...)` because the keyword arguments were
not taken care of in bbb99f9.

Fixes #4576
Related to coala/docker-coala-base#219
  • Loading branch information...
yash-nisar committed Jul 28, 2017
1 parent 499c93f commit 28683248ee6230130a2dce259a046a8576d7982c
Showing with 4 additions and 2 deletions.
  1. +4 −2 coalib/testing/LocalBearTestHelper.py
@@ -25,14 +25,16 @@ def execute_bear(bear, *args, **kwargs):
'the following output:\n')
old_process_output = bear.process_output
def new_process_output(output, filename=None, file=None):
def new_process_output(output, filename=None, file=None,
**process_output_kwargs):
if isinstance(output, tuple):
stdout, stderr = output
console_output.append('Stdout:\n' + stdout)
console_output.append('Stderr:\n' + stderr)
else:
console_output.append(output)
return old_process_output(output, filename, file)
return old_process_output(output, filename, file,
**process_output_kwargs)
stack.enter_context(patch.object(
bear, 'process_output', wraps=new_process_output))

0 comments on commit 2868324

Please sign in to comment.