You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support navigating exceptions chains in pdb #12707
If running pytest with --pdb and a chain of exceptions is raised, you can only navigate the bottom exception in the chain. You cannot hop between exceptions in the chain
Describe the solution you'd like
Python 3.13.0a1 added support for jumping between chained exception in Pdb (python/cpython@f75cefd). pdb.post_mortem and pdb.Pdb.interaction must be passed an exception object for this to work. These functions used to accept only a traceback, so that's what pytest is passing currently. If pytest passes an exception instead then exception chains can be navigated. As a proof of concept:
Activity
Exception chains can be navigated when dropped into Pdb in Python 3.13+.
Exception chains can be navigated when dropped into Pdb in Python 3.13+.
Exception chains can be navigated when dropped into Pdb in Python 3.13+
Exception chains can be navigated when dropped into Pdb in Python 3.1…
chore(deps): update dependency pytest to v9 (#305)