Support IPython test with --capture=no

https://github.com/ipython/ipython/issues/1534