summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-23 16:59:35 (GMT)
committerFred Drake <fdrake@acm.org>2000-10-23 16:59:35 (GMT)
commit2ec80faae5ecdf3e9deb258cb6e2b37ef7ca6ce1 (patch)
treeecd51b1cd334d65b9abe56c1336002feda85eb93 /Lib
parentdce5641856dfe28f668ce109ae44a7a85c0294e8 (diff)
downloadcpython-2ec80faae5ecdf3e9deb258cb6e2b37ef7ca6ce1.zip
cpython-2ec80faae5ecdf3e9deb258cb6e2b37ef7ca6ce1.tar.gz
cpython-2ec80faae5ecdf3e9deb258cb6e2b37ef7ca6ce1.tar.bz2
Clean up the temporary file when done with it.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_file.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_file.py b/Lib/test/test_file.py
index 4ad5c95..d73167a 100644
--- a/Lib/test/test_file.py
+++ b/Lib/test/test_file.py
@@ -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)