astropy/astropy — pull request #208 by mdboom (2012-04-19 19:13:15+00:00)
Title: Make "import astropy" faster

I was noticing that "import astropy" on my machine takes > 1sec. That seemed a little crazy. It turns out that `py.test` was being imported unconditionally. This changes it so it is only imported when testing actually happens. `python setup.py test` still works, as does `python -c "import astropy; astropy.test()"`.