Merge pull request #12563 from webknjaz/maintenance/hotfixes/note/12264--reraise-with-original-tb

📝🚑 Polish the PR #12264 changelog entry
This commit is contained in:
Sviatoslav Sydorenko (Святослав Сидоренко) 2024-07-02 21:30:19 +02:00 committed by GitHub
commit ac41898755
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,11 @@
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. Fixed 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 -- by :user:`bluetech`.
Also fix a similar regression in pytest 5.4 for collectors which raise during setup. Also fixed a similar regression in pytest 5.4 for collectors which raise during setup.
The fix necessitated internal changes which may affect some plugins: The fix necessitated internal changes which may affect some plugins:
- ``FixtureDef.cached_result[2]`` is now a tuple ``(exc, tb)`` instead of ``exc``.
- ``SetupState.stack`` failures are now a tuple ``(exc, tb)`` instead of ``exc``. * ``FixtureDef.cached_result[2]`` is now a tuple ``(exc, tb)``
instead of ``exc``.
* ``SetupState.stack`` failures are now a tuple ``(exc, tb)``
instead of ``exc``.

1
changelog/12264.bugfix.rst Symbolic link
View File

@ -0,0 +1 @@
12204.bugfix.rst