Skip to content

Commit f860083

Browse files
committed
TEST: _get_rep_reprcrash: remove special handling for first tb entry
1 parent 615e4ef commit f860083

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/_pytest/terminal.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,15 +1219,6 @@ def _get_rep_reprcrash(
12191219
if not rep.longrepr:
12201220
return None
12211221

1222-
if isinstance(rep, TestReport) and not fulltrace:
1223-
# This uses the first traceback entry for the location in the test itself
1224-
# (rather than reprcrash, which might be less relevant for going to
1225-
# directly, e.g. pexpect failures in pytest itself).
1226-
try:
1227-
return rep.longrepr.reprtraceback.reprentries[0].reprfileloc
1228-
except AttributeError:
1229-
pass
1230-
12311222
# Handle --tb=native, --tb=no.
12321223
try:
12331224
return rep.longrepr.reprcrash

0 commit comments

Comments
 (0)