From: Fred Drake Date: Mon, 23 Oct 2000 16:37:14 +0000 (+0000) Subject: Added note saying to use test_support.TESTFN for a temporary filename, X-Git-Tag: v2.1a1~844 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44b6bd21799beee97b2d2b73c533956f47fa4217;p=python Added note saying to use test_support.TESTFN for a temporary filename, and be clear that you need to clean it up when done. --- diff --git a/Lib/test/README b/Lib/test/README index 81e11fa8ed..0380a087f1 100644 --- a/Lib/test/README +++ b/Lib/test/README @@ -115,6 +115,11 @@ In designing test cases you should pay attention to the following: test, try to write a test case that exposes the bug (preferably before fixing it). + * If you need to create a temporary file, you can use the filename in + test_support.TESTFN to do so. It is important to remove the file + when done; other tests should be able to use the name without cleaning + up after your test. + Regression Test Writing Rules