Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
ec7cf1382bc4f32aa4fe20edcf8be83cbf530c62
/
.
/
Lib
/
test
/
test_tempfile.py
blob: 286e79cfa459ee7053d414db89919d16067bb790 [
file
] [
log
] [
blame
]
# SF bug #476138: tempfile behavior across platforms
# Ensure that a temp file can be closed any number of times without error.
import
tempfile
f
=
tempfile
.
TemporaryFile
(
"w+b"
)
f
.
write
(
'abc\n'
)
f
.
close
()
f
.
close
()
f
.
close
()