ipython/ipython — pull request #1398 by minrk (2012-02-12 02:16:28+00:00)
Title: 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.

Bug reported by @thisch