summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-23 16:37:14 (GMT)
committerFred Drake <fdrake@acm.org>2000-10-23 16:37:14 (GMT)
commit44b6bd21799beee97b2d2b73c533956f47fa4217 (patch)
tree956d0f0bc4b4be3368df05d80be19ace6eb3df14
parent8902442e2f8040c368f4a3750031baa3e4bfc5d0 (diff)
downloadcpython-44b6bd21799beee97b2d2b73c533956f47fa4217.zip
cpython-44b6bd21799beee97b2d2b73c533956f47fa4217.tar.gz
cpython-44b6bd21799beee97b2d2b73c533956f47fa4217.tar.bz2
Added note saying to use test_support.TESTFN for a temporary filename,
and be clear that you need to clean it up when done.
-rw-r--r--Lib/test/README5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/README b/Lib/test/README
index 81e11fa..0380a08 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