mirror of
https://github.com/python/cpython.git
synced 2026-05-11 23:18:57 -04:00
Clean up the temporary file when done with it.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user