repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
This commit was manufactured by cvs2svn to create tag 'r221'.
[python/dscho.git]
/
Lib
/
test
/
test_tempfile.py
blob
286e79cfa459ee7053d414db89919d16067bb790
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
()