summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_largefile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_largefile.py')
-rw-r--r--Lib/test/test_largefile.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py
index f7697d2..8157ddb 100644
--- a/Lib/test/test_largefile.py
+++ b/Lib/test/test_largefile.py
@@ -171,6 +171,10 @@ def main_test():
f = open(TESTFN, 'w')
if hasattr(f, 'truncate'):
suite.addTest(TestCase('test_truncate'))
+ f.close()
+ unlink(TESTFN)
+ run_unittest(suite)
+ unlink(TESTFN)
if __name__ == '__main__':
main_test()