ipython/ipython — pull request #1602 by takluyver (2012-04-15 11:31:23+00:00)
Title: Fix %env magic on Python 3.

And add simple test

Closes gh-1201