On Thu, Jan 6, 2011 at 8:11 AM, brett.cannon <python-check...@python.org> wrote: > +.. todo:: > + See if tempfile or test.support has a context manager that creates and > + deletes a temp file so as to move off of test.support.TESTFN.
Yeah, tempfile.TemporaryFile and friends all support the CM protocol. There's also the tempfile.TemporaryDirectory CM (as of 3.2). Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com