Maybe we don't need to worry about this corner case, but I believe this will fail when using `astropy.test()` if astropy is system-installed, because it's source directory won't have write permissions.  Is there a way to create a temporary directory on the side, and add that to the list of directories that py.test collects from?