File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 14
14
from .reports import CollectErrorRepr
15
15
from .reports import CollectReport
16
16
from .reports import TestReport
17
+ from _pytest ._code .code import ExceptionChainRepr
17
18
from _pytest ._code .code import ExceptionInfo
18
- from _pytest ._code .code import ExceptionRepr
19
19
from _pytest .compat import TYPE_CHECKING
20
20
from _pytest .nodes import Collector
21
21
from _pytest .nodes import Node
@@ -267,7 +267,7 @@ def pytest_make_collect_report(collector: Collector) -> CollectReport:
267
267
if call .excinfo .errisinstance (tuple (skip_exceptions )):
268
268
outcome = "skipped"
269
269
r_ = collector ._repr_failure_py (call .excinfo , "line" )
270
- assert isinstance (r_ , ExceptionRepr ), r_
270
+ assert isinstance (r_ , ExceptionChainRepr ), repr ( r_ )
271
271
r = r_ .reprcrash
272
272
assert r
273
273
longrepr = (str (r .path ), r .lineno , r .message )
You can’t perform that action at this time.
0 commit comments