_getfailureheadline: get head_line property only once

This commit is contained in:
Daniel Hahler 2019-04-15 17:04:34 +02:00
parent 19035f4b55
commit eb13530560
1 changed files with 4 additions and 4 deletions

View File

@ -734,10 +734,10 @@ class TerminalReporter(object):
return res + " "
def _getfailureheadline(self, rep):
if rep.head_line:
return rep.head_line
else:
return "test session" # XXX?
head_line = rep.head_line
if head_line:
return head_line
return "test session" # XXX?
def _getcrashline(self, rep):
try: