From 5ac20ab9655450c26f0ac744b1c6d1ab8bdce2b4 Mon Sep 17 00:00:00 2001 From: Vadim Rutkovsky Date: Wed, 11 Jun 2014 01:27:53 +0200 Subject: tests: don't attach empty stdout / stderr --- tests/environment.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/environment.py') diff --git a/tests/environment.py b/tests/environment.py index 13b35a453c..767bf6b6aa 100644 --- a/tests/environment.py +++ b/tests/environment.py @@ -69,8 +69,11 @@ def after_scenario(context, scenario): stdout = non_block_read(context.app_class.process.stdout) stderr = non_block_read(context.app_class.process.stderr) - context.embed('text/plain', '\n'.join(stdout)) - context.embed('text/plain', '\n'.join(stderr)) + if stdout: + context.embed('text/plain', stdout) + + if stderr: + context.embed('text/plain', stderr) # Make some pause after scenario sleep(1) -- cgit v1.2.3