]> granicus.if.org Git - python/commitdiff
Added note saying to use test_support.TESTFN for a temporary filename,
authorFred Drake <fdrake@acm.org>
Mon, 23 Oct 2000 16:37:14 +0000 (16:37 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 23 Oct 2000 16:37:14 +0000 (16:37 +0000)
and be clear that you need to clean it up when done.

Lib/test/README

index 81e11fa8ed6d705b483ea136e6dba41be9e0907c..0380a087f1a81d1a02bc8e338a914a6a02da0736 100644 (file)
@@ -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