[Python-checkins] CVS: python/dist/src/Lib/test test_tempfile.py,NONE,1.1
Tim Peters
tim_one@users.sourceforge.net
Mon, 29 Oct 2001 13:46:10 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv10684/python/Lib/test
Added Files:
test_tempfile.py
Log Message:
SF bug #476138: tempfile behavior across platforms
Ensure that a tempfile can be closed any number of times without error.
This wasn't true on Windows.
--- NEW FILE: test_tempfile.py ---
# 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()