astropy/astropy — pull request #459 by eteq (2012-11-02 21:34:57+00:00)
Title: move creation of test's temporary cache/config directory to a py.test fixture

Does exactly what it says. This is important because before this, if you invoke py.test directly instead of via `astropy.test` or `setup.py test`, this code does not run, and you will overwrite your current configuration when you run the tests.

Note however this is not ready for merging. The py.test fixtures framework requires py.test >= 2.3, which #446 will address. Once #446 is merged, I'll rebase against it, and this can be merged. In the meantime, this should serve as a warning to be careful when invoking py.test and your astropy config directory.