2024-04-28 16:44:55 +08:00
|
|
|
Fix a regression in pytest 8.0 where tracebacks get longer and longer when multiple tests fail due to a shared higher-scope fixture which raised.
|
|
|
|
|
2024-04-28 16:47:37 +08:00
|
|
|
Also fix a similar regression in pytest 5.4 for collectors which raise during setup.
|
|
|
|
|
2024-04-28 16:44:55 +08:00
|
|
|
The fix necessitated internal changes which may affect some plugins:
|
|
|
|
- ``FixtureDef.cached_result[2]`` is now a tuple ``(exc, tb)`` instead of ``exc``.
|
2024-04-28 16:47:37 +08:00
|
|
|
- ``SetupState.stack`` failures are now a tuple ``(exc, tb)`` instead of ``exc``.
|