revert changes to `_getfailureheadline`

This commit is contained in:
symonk 2021-11-02 21:10:02 +00:00
parent 8a209e16d3
commit c1c2668553
1 changed files with 5 additions and 2 deletions

View File

@ -873,8 +873,11 @@ class TerminalReporter:
res = "[location]"
return res + " "
def _getfailureheadline(self, rep) -> str:
return rep.head_line or "test session"
def _getfailureheadline(self, rep):
head_line = rep.head_line
if head_line:
return head_line
return "test session" # XXX?
def _getcrashline(self, rep):
try: