Fix doctests that want write access to $HOME

Imported from <a href="http://trac.sagemath.org/sage_trac/ticket/13985">trac #13985</a>.

Diff for the SciPy spkg, for review only

Reported by: jdemeyer

Component: packages

CC: fbissey

Report Upstream: Fixed upstream, but not in a stable release.

Authors: Jeroen Demeyer

Dependencies: <a href="http://trac.sagemath.org/sage_trac/ticket/13992">trac #13992</a>

Work issues: 

Reviewers: François Bissey

Merged in: sage-5.7.beta1

Attachments: <ol><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13985/scipy-0.11.0.p0.diff">scipy-0.11.0.p0.diff: Diff for the SciPy spkg, for review only</a> by jdemeyer at 20130122T14:11:56</li></ol>