summaryrefslogtreecommitdiffstats
path: root/utils/test/fixture.py
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-03-06 16:16:43 +0100
committerGitHub <noreply@github.com>2017-03-06 16:16:43 +0100
commit354d4e41b4693bc055dfb0a8e302088e0b978408 (patch)
treeb8d4a947aa0a97ae8f25a099d45a7d76cf5faf34 /utils/test/fixture.py
parent6ecb86b2fcc36e3383d86395d3be0a443e12981e (diff)
parent3763417a1351448d2be60afb227af138aa22818e (diff)
downloadopenshift-354d4e41b4693bc055dfb0a8e302088e0b978408.tar.gz
openshift-354d4e41b4693bc055dfb0a8e302088e0b978408.tar.bz2
openshift-354d4e41b4693bc055dfb0a8e302088e0b978408.tar.xz
openshift-354d4e41b4693bc055dfb0a8e302088e0b978408.zip
Merge pull request #3563 from rhcarvalho/misc-cleanup
Misc cleanup
Diffstat (limited to 'utils/test/fixture.py')
-rw-r--r--utils/test/fixture.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/utils/test/fixture.py b/utils/test/fixture.py
index 5200d275d..873ac4a27 100644
--- a/utils/test/fixture.py
+++ b/utils/test/fixture.py
@@ -65,14 +65,13 @@ class OOCliFixture(OOInstallFixture):
def assert_result(self, result, exit_code):
if result.exit_code != exit_code:
- print("Unexpected result from CLI execution")
- print("Exit code: %s" % result.exit_code)
- print("Exception: %s" % result.exception)
- print(result.exc_info)
+ msg = ["Unexpected result from CLI execution\n"]
+ msg.append("Exit code: %s\n" % result.exit_code)
+ msg.append("Exception: %s\n" % result.exception)
import traceback
- traceback.print_exception(*result.exc_info)
- print("Output:\n%s" % result.output)
- self.fail("Exception during CLI execution")
+ msg.extend(traceback.format_exception(*result.exc_info))
+ msg.append("Output:\n%s" % result.output)
+ self.fail("".join(msg))
def _verify_load_facts(self, load_facts_mock):
""" Check that we ran load facts with expected inputs. """