astropy/astropy — pull request #283 by eteq (2012-06-14 03:32:26+00:00)
Title: Make tests never use normal cache/config dir

This overwrites the environment variables used to specify the configuration and cache directories so that running the tests doesn't have any chance of messing with those directories. Instead, they get redirectred to temporary directories. Before this, even though the config tests don't write to them, they were still read for configuration information, which might mess up tests in some cases.

This closes #134 and closes #196