Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix %tb after SyntaxError #1398

Merged
merged 2 commits into from
Mar 8, 2012
Merged

fix %tb after SyntaxError #1398

merged 2 commits into from
Mar 8, 2012

Conversation

minrk
Copy link
Member

@minrk minrk commented Feb 12, 2012

Moves exc_info extraction to Shell._get_exc_info, since it was done twice in different places, and differently.

Synchronizes expectations between showtraceback() and showsyntaxerror(), and ensures that sys.last_type, etc. get the right value.

Previously failing test added.

Bug reported by @Thisch

Synchronizes expectations between `showtraceback()` and `showsyntaxerror()`, and ensures that `sys.last_type`, etc. have the right value.
@twmr
Copy link
Contributor

twmr commented Feb 12, 2012

Thx, this fixed the bug for me!

minrk added a commit that referenced this pull request Mar 8, 2012
fix %tb after SyntaxError

Moves exc_info extraction to Shell._get_exc_info, since it was done twice in different places, and differently.

Synchronizes expectations between showtraceback() and showsyntaxerror(), and ensures that sys.last_type, etc. get the right value.

Previously failing test added.
@minrk minrk merged commit 94efbf7 into ipython:master Mar 8, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
fix %tb after SyntaxError

Moves exc_info extraction to Shell._get_exc_info, since it was done twice in different places, and differently.

Synchronizes expectations between showtraceback() and showsyntaxerror(), and ensures that sys.last_type, etc. get the right value.

Previously failing test added.
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.

2 participants