Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44b6bd2

Browse files
committed
Added note saying to use test_support.TESTFN for a temporary filename,
and be clear that you need to clean it up when done.
1 parent 8902442 commit 44b6bd2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ In designing test cases you should pay attention to the following:
115115
test, try to write a test case that exposes the bug (preferably before
116116
fixing it).
117117

118+
* If you need to create a temporary file, you can use the filename in
119+
test_support.TESTFN to do so. It is important to remove the file
120+
when done; other tests should be able to use the name without cleaning
121+
up after your test.
122+
118123

119124
Regression Test Writing Rules
120125

0 commit comments

Comments
 (0)