Skip to content
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 29, 2017
1 parent 499c93f commit 28683248ee6230130a2dce259a046a8576d7982c
Showing 1 changed file with 4 additions and 2 deletions.
@@ -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,
if isinstance(output, tuple):
stdout, stderr = output
console_output.append('Stdout:\n' + stdout)
console_output.append('Stderr:\n' + stderr)
return old_process_output(output, filename, file)
return old_process_output(output, filename, file,

bear, 'process_output', wraps=new_process_output))

0 comments on commit 2868324

Please sign in to comment.