astropy/astropy — pull request #190 by eteq (2012-04-02 04:02:52+00:00)
Title: Test imports

This adds an additional test that walks through the whole astropy package and checks to make sure the modules can all be imported without failing - this is particularly useful with shiningpanda (or other "clean" environments) in that it will make sure there are no top-level imports accidentally sneaking in that will break imports.

This can be used also to check if all imports work *before* compiling by just running ``py.test -m importtests`` from the source root (assuming there isn't an inplace build).

@mdboom - this also includes two small fixes in `vo` and `wcs` that were revealed by running the test. The `vo` one is clearly just a typo, but I thought I should point out the `wcs` fix - apparently 2to3 just removes any ``from __future__ import division`` statements, so the ``del division`` was giving an error in py 3.x - this seems to work in both cases now, but you might want to glance at it to make sure there aren't unintended consequences...