]> granicus.if.org Git - python/commitdiff
Clean up the temporary file when done with it.
authorFred Drake <fdrake@acm.org>
Mon, 23 Oct 2000 16:59:35 +0000 (16:59 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 23 Oct 2000 16:59:35 +0000 (16:59 +0000)
Lib/test/test_file.py

index 4ad5c95d32ef7a8712e858733eb5657014501113..d73167ad4381ab742e6b569d96638bd7ed879d86 100644 (file)
@@ -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)