Merge pull request #5131 from blueyed/_getfailureheadline
_getfailureheadline: get head_line property only once
This commit is contained in:
commit
24bd51bda0
|
@ -734,10 +734,10 @@ class TerminalReporter(object):
|
||||||
return res + " "
|
return res + " "
|
||||||
|
|
||||||
def _getfailureheadline(self, rep):
|
def _getfailureheadline(self, rep):
|
||||||
if rep.head_line:
|
head_line = rep.head_line
|
||||||
return rep.head_line
|
if head_line:
|
||||||
else:
|
return head_line
|
||||||
return "test session" # XXX?
|
return "test session" # XXX?
|
||||||
|
|
||||||
def _getcrashline(self, rep):
|
def _getcrashline(self, rep):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue