Kaydet (Commit) 44b6bd21 authored tarafından Fred Drake's avatar Fred Drake

Added note saying to use test_support.TESTFN for a temporary filename,

and be clear that you need to clean it up when done.
üst 8902442e
...@@ -115,6 +115,11 @@ In designing test cases you should pay attention to the following: ...@@ -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 test, try to write a test case that exposes the bug (preferably before
fixing it). 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 Regression Test Writing Rules
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment