revert changes to `_getfailureheadline`
This commit is contained in:
parent
8a209e16d3
commit
c1c2668553
|
@ -873,8 +873,11 @@ class TerminalReporter:
|
||||||
res = "[location]"
|
res = "[location]"
|
||||||
return res + " "
|
return res + " "
|
||||||
|
|
||||||
def _getfailureheadline(self, rep) -> str:
|
def _getfailureheadline(self, rep):
|
||||||
return rep.head_line or "test session"
|
head_line = rep.head_line
|
||||||
|
if head_line:
|
||||||
|
return head_line
|
||||||
|
return "test session" # XXX?
|
||||||
|
|
||||||
def _getcrashline(self, rep):
|
def _getcrashline(self, rep):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue