mirror of
https://github.com/python/cpython.git
synced 2025-11-19 18:47:27 +00:00
Added note saying to use test_support.TESTFN for a temporary filename,
and be clear that you need to clean it up when done.
This commit is contained in:
parent
8902442e2f
commit
44b6bd2179
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue