summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-30 16:19:14 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-30 16:19:14 (GMT)
commit8d2b51b46a1ba0e09f7ee8cb78c848768a675604 (patch)
tree401ea84f8c345a7f5727db61261109ab9efd8798 /Lib
parentdaf83acf003466777db394cb5e41d72ee6aea035 (diff)
downloadcpython-8d2b51b46a1ba0e09f7ee8cb78c848768a675604.zip
cpython-8d2b51b46a1ba0e09f7ee8cb78c848768a675604.tar.gz
cpython-8d2b51b46a1ba0e09f7ee8cb78c848768a675604.tar.bz2
Issue #10253: FileIO leaks a file descriptor when trying to open a file
for append that isn't seekable. Patch by Brian Brazil.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_fileio.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index 4b48d41..350ba5d 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -339,6 +339,7 @@ class OtherFileTests(unittest.TestCase):
f.truncate(15)
self.assertEqual(f.tell(), 5)
self.assertEqual(f.seek(0, os.SEEK_END), 15)
+ f.close()
def testTruncateOnWindows(self):
def bug801631():