Merge pull request #5117 from blueyed/cov-terminal
Minor coverage improvements for terminal plugin
This commit is contained in:
commit
3cff5e252d
|
@ -165,7 +165,6 @@ def getreportopt(config):
|
||||||
reportchars += "w"
|
reportchars += "w"
|
||||||
elif config.option.disable_warnings and "w" in reportchars:
|
elif config.option.disable_warnings and "w" in reportchars:
|
||||||
reportchars = reportchars.replace("w", "")
|
reportchars = reportchars.replace("w", "")
|
||||||
if reportchars:
|
|
||||||
for char in reportchars:
|
for char in reportchars:
|
||||||
if char == "a":
|
if char == "a":
|
||||||
reportopts = "sxXwEf"
|
reportopts = "sxXwEf"
|
||||||
|
@ -855,10 +854,8 @@ class TerminalReporter(object):
|
||||||
msg = self._getfailureheadline(rep)
|
msg = self._getfailureheadline(rep)
|
||||||
if rep.when == "collect":
|
if rep.when == "collect":
|
||||||
msg = "ERROR collecting " + msg
|
msg = "ERROR collecting " + msg
|
||||||
elif rep.when == "setup":
|
else:
|
||||||
msg = "ERROR at setup of " + msg
|
msg = "ERROR at %s of %s" % (rep.when, msg)
|
||||||
elif rep.when == "teardown":
|
|
||||||
msg = "ERROR at teardown of " + msg
|
|
||||||
self.write_sep("_", msg, red=True, bold=True)
|
self.write_sep("_", msg, red=True, bold=True)
|
||||||
self._outrep_summary(rep)
|
self._outrep_summary(rep)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue