Skip to content

Commit cd753aa

Browse files
committed
ExceptionInfo.from_current: pass through exprinfo
This was lost in 11f1f79.
1 parent c9524af commit cd753aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/_code/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def from_current(
448448
assert tup[1] is not None, "no current exception"
449449
assert tup[2] is not None, "no current exception"
450450
exc_info = (tup[0], tup[1], tup[2])
451-
return cls.from_exc_info(exc_info)
451+
return cls.from_exc_info(exc_info, exprinfo)
452452

453453
@classmethod
454454
def for_later(cls) -> "ExceptionInfo[_E]":

0 commit comments

Comments
 (0)