commit | 8d2b51b46a1ba0e09f7ee8cb78c848768a675604 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sat Oct 30 16:19:14 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sat Oct 30 16:19:14 2010 +0000 |
tree | 401ea84f8c345a7f5727db61261109ab9efd8798 | |
parent | daf83acf003466777db394cb5e41d72ee6aea035 [diff] |
Issue #10253: FileIO leaks a file descriptor when trying to open a file for append that isn't seekable. Patch by Brian Brazil.
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 @@ f.truncate(15) self.assertEqual(f.tell(), 5) self.assertEqual(f.seek(0, os.SEEK_END), 15) + f.close() def testTruncateOnWindows(self): def bug801631():