Tim Peters | c57a285 | 2001-10-29 21:46:08 +0000 | [diff] [blame] | 1 | # SF bug #476138: tempfile behavior across platforms |
2 | # Ensure that a temp file can be closed any number of times without error. | ||||
3 | |||||
4 | import tempfile | ||||
5 | |||||
6 | f = tempfile.TemporaryFile("w+b") | ||||
7 | f.write('abc\n') | ||||
8 | f.close() | ||||
9 | f.close() | ||||
10 | f.close() |