[py-svn] py-trunk commit 3d1972d3dc86: don't print empty lines with junitxml file printing
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sat Jun 5 16:06:30 CEST 2010
# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview
# User holger krekel <holger at merlinux.eu>
# Date 1275604758 -7200
# Node ID 3d1972d3dc8691a2bc03de96e501678a321c0665
# Parent 74f4fe2cbb024dad5b172e7087250bc6fa17182e
don't print empty lines with junitxml file printing
--- 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('</testsuite>')
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))
More information about the pytest-commit
mailing list