Skip to content

Conversation

cjwatson
Copy link

pytest-dev/pytest#13380 (I think) means that pytest now fails if all the traceback frames after the cut have __tracebackhide__ = True set. To avoid this, set __tracebackhide__ = False if we're about to raise an exception directly from the plugin.

Fixes: #151

pytest-dev/pytest#13380 (I think) means that
pytest now fails if all the traceback frames after the cut have
`__tracebackhide__ = True` set.  To avoid this, set `__tracebackhide__ =
False` if we're about to raise an exception directly from the plugin.

Fixes: python-trio#151
@jakkdl
Copy link
Member

jakkdl commented Sep 16, 2025

I don't think there's an urgent need to merge this into pytest-trio until we've determined whether it'll be fixed on the pytest end. But if you want to cherry-pick this into debian to make a temporary fix I think that's fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests fail with pytest 8.4: empty traceback when the plugin raises an exception directly
2 participants