A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-February/077047.html below:

[Python-Dev] Unit Test Guide

[Python-Dev] Unit Test Guide [Python-Dev] Unit Test GuideChristian Heimes lists at cheimes.de
Thu Feb 21 18:14:37 CET 2008
Guido van Rossum wrote:
>>  I don't think so.
>>  You could create a directory in setUp method by using tempfile.mkdtemp
>>  and then remove it in tearDown.
> 
> Specifically, clean it up with shutil.rmtree()

And make sure you have closed all files before you rmtree() the
directory. Otherwise the unit test *will* fail on Windows.

Christian

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4