GaelVaroquaux/nipy — comment on commit 813d1a5d99f03aa5ecb29d40aa032acc91002fe0
File: nipy/labs/tests/test_mask.py line 88
By matthew-brett:

You need a temporary file here - it's not guaranteed that the current directory is writable and you don't delete the file afterwards. Maybe use nibabel.tmpdirs.InTemporaryDirectory or use StringIOs in a file_map.