[Python-Dev] Adding test.support.safe_rmpath()

Eric Snow ericsnowcurrently at gmail.com
Thu Feb 14 09:25:42 EST 2019

On Thu, Feb 14, 2019, 02:47 Ronald Oussoren via Python-Dev <
python-dev at python.org wrote:

> I usually use shutil.rmtree for tests that need to create temporary files,
> and create a temporary directory for those files (that is, use
> tempfile.mkdtemp in setUp() and use shutil.rmtree in tearDown()). That way
> I don’t have to adjust house-keeping code when I make changes to test code.

Same here.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20190214/fec5b65d/attachment.html>

More information about the Python-Dev mailing list