Skip to content

pdb: set excinfo in _postmortem_traceback, cut#16

Merged
blueyed merged 1 commit intomy-masterfrom
post_mortem
Oct 27, 2019
Merged

pdb: set excinfo in _postmortem_traceback, cut#16
blueyed merged 1 commit intomy-masterfrom
post_mortem

Conversation

@blueyed
Copy link
Owner

@blueyed blueyed commented Oct 27, 2019

Cuts the post_mortem traceback passed to pdb.

pdb.pm() can be used for the "full" traceback, which is hard-cut at CallInfo.from_call currently.

Ref: pytest-dev#5149

@blueyed blueyed merged commit 9659ce0 into my-master Oct 27, 2019
@blueyed blueyed deleted the post_mortem branch October 27, 2019 11:09
blueyed added a commit that referenced this pull request Nov 8, 2019
Save original/current `pdb.set_trace` on the instance, not class.
Tried to keep this minimal, more fixes forthcoming.

Fixes pytest-dev#5228 properly (previously 9129ad3).

Conflicts with pytest-dev/features due to:

- cd10ee1 (minor, "improve header for _enter_pdb" (#21))
- 9659ce0 ("pdb: set excinfo in _postmortem_traceback, cut", #16; only a hack - WIP at #20 (ref: pytest-dev#6081))
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.

1 participant