mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Clean up the temporary file when done with it.
This commit is contained in:
parent
dce5641856
commit
2ec80faae5
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
import os
|
||||
|
||||
from test_support import TESTFN
|
||||
from UserList import UserList
|
||||
|
||||
|
@ -43,3 +45,5 @@ except TypeError:
|
|||
else:
|
||||
print "writelines accepted sequence of non-string objects"
|
||||
f.close()
|
||||
|
||||
os.unlink(TESTFN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue