From cd753aa4ab599d2cccbefb7c837681efae406a29 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 19 Oct 2019 03:01:10 +0200 Subject: [PATCH] ExceptionInfo.from_current: pass through exprinfo This was lost in 11f1f79222. --- src/_pytest/_code/code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/_code/code.py b/src/_pytest/_code/code.py index 1d26d94ab58..694f45fb6d4 100644 --- a/src/_pytest/_code/code.py +++ b/src/_pytest/_code/code.py @@ -448,7 +448,7 @@ def from_current( assert tup[1] is not None, "no current exception" assert tup[2] is not None, "no current exception" exc_info = (tup[0], tup[1], tup[2]) - return cls.from_exc_info(exc_info) + return cls.from_exc_info(exc_info, exprinfo) @classmethod def for_later(cls) -> "ExceptionInfo[_E]":