mne-tools/mne-python — pull request #289 by Eric89GXL (2012-12-18 06:49:37+00:00)
Title: ENH: Auto-deleting temp dirs created during testing

This turned out to be more of a pain than expected, because the __del__() method cannot guarantee that other methods (e.g., shutil.rmtree) have not been deleted.

I subclassed string so that it would be a one-liner to use (like tempfile.mkdtemp() was).