astropy/astropy — pull request #2684 by mdboom (2014-07-03 14:13:40+00:00)
Title: Raise exception when running tests inside IPython.

I believe in the past we've punted on supporting running the tests inside of IPython, since it changes the environment in various ways (such as logging, importing) that have been difficult to support. Of course, it's not easy for the end user helping us with testing to know that. This raises an exception if the tests are run inside IPython. I realize this is a somewhat heavy-handed approach, but it might be a good thing to do for now until tests-in-IPython is working.