summaryrefslogtreecommitdiffstats
path: root/Lib/test/README
diff options
context:
space:
mode:
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 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