From bdd1006e06025e0785c9cee3e1a9dbaf380d705f Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 4 Jun 2010 00:39:18 +0200 Subject: [PATCH] don't print empty lines with junitxml file printing --HG-- branch : trunk --- py/_plugin/pytest_junitxml.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/py/_plugin/pytest_junitxml.py b/py/_plugin/pytest_junitxml.py index 94001b74e..64945cc24 100644 --- a/py/_plugin/pytest_junitxml.py +++ b/py/_plugin/pytest_junitxml.py @@ -166,6 +166,7 @@ class LogXML(object): logfile.writelines(self.test_logs) logfile.write('') logfile.close() - tw = session.config.pluginmanager.getplugin("terminalreporter")._tw - tw.line() - tw.sep("-", "generated xml file: %s" %(self.logfile)) + + def pytest_terminal_summary(self, terminalreporter): + tw = terminalreporter._tw + terminalreporter.write_sep("-", "generated xml file: %s" %(self.logfile))