GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Support navigating exceptions chains in pdb · Issue #12707 · pytest-dev/pytest Closed Labels plugin: debuggingrelated to the debugging builtin plugintype: enhancementnew feature or API change, should be merged into features branch DescriptionWhat's the problem this feature will solve?If running pytest with Describe the solution you'd likePython 3.13.0a1 added support for jumping between chained exception in Pdb (python/cpython@f75cefd). diff --git a/src/_pytest/debugging.py b/src/_pytest/debugging.py index 3e1463fff..578150f43 100644 --- a/src/_pytest/debugging.py +++ b/src/_pytest/debugging.py @@ -354,7 +354,7 @@ def _enter_pdb( tw.sep(">", "traceback") rep.toterminal(tw) tw.sep(">", "entering PDB") - tb = _postmortem_traceback(excinfo) + tb = excinfo.value #_postmortem_traceback(excinfo) rep._pdbshown = True # type: ignore[attr-defined] post_mortem(tb) return rep Alternative SolutionsI have not looked for alternate solutions. Additional context
Reacted by Steinthor Palsson Activity
MetadataMetadataAssigneesLabelsplugin: debuggingrelated to the debugging builtin plugintype: enhancementnew feature or API change, should be merged into features branch TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |