diff --git a/_pytest/junitxml.py b/_pytest/junitxml.py index c6da0ad18..db6c5a8b2 100644 --- a/_pytest/junitxml.py +++ b/_pytest/junitxml.py @@ -170,5 +170,4 @@ class LogXML(object): logfile.close() def pytest_terminal_summary(self, terminalreporter): - tw = terminalreporter._tw - terminalreporter.write_sep("-", "generated xml file: %s" %(self.logfile)) + terminalreporter.write_sep("-", "generated xml file: %s" % (self.logfile))