summaryrefslogtreecommitdiff
path: root/Lib/test/README
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-23 16:37:14 +0000
committerFred Drake <fdrake@acm.org>2000-10-23 16:37:14 +0000
commitbd97ff8fe023c7816de2ec8b0469492722d65cb5 (patch)
treedf4e8629d5c93384fd08f306230d068cf0d1c673 /Lib/test/README
parentf95e7c798961819d7ab870ec03ab525b779d4c63 (diff)
downloadcpython-bd97ff8fe023c7816de2ec8b0469492722d65cb5.tar.gz
Added note saying to use test_support.TESTFN for a temporary filename,
and be clear that you need to clean it up when done.
Diffstat (limited to 'Lib/test/README')
-rw-r--r--Lib/test/README5
1 files changed, 5 insertions, 0 deletions
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