Exclude empty reports for passed tests

This commit is contained in:
Denis Otkidach 2018-09-26 11:55:39 +03:00
parent b1fbb2ab92
commit f9ab81a493
1 changed files with 4 additions and 3 deletions

View File

@ -745,9 +745,10 @@ class TerminalReporter(object):
return
self.write_sep("=", "PASSES")
for rep in reports:
msg = self._getfailureheadline(rep)
self.write_sep("_", msg)
self._outrep_summary(rep)
if rep.sections:
msg = self._getfailureheadline(rep)
self.write_sep("_", msg)
self._outrep_summary(rep)
def print_teardown_sections(self, rep):
showcapture = self.config.option.showcapture