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