diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-31 13:05:48 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-31 13:05:48 (GMT) |
| commit | 594a046b88abf26c2c2a314ca5b54e4c808ba801 (patch) | |
| tree | 15b3220eacc3b26585362b253e5b1791f6afc49d /Lib/test | |
| parent | e27731d0bfb9193f4fb0ed80de511ac8fb4a0ee0 (diff) | |
| download | cpython-594a046b88abf26c2c2a314ca5b54e4c808ba801.zip cpython-594a046b88abf26c2c2a314ca5b54e4c808ba801.tar.gz cpython-594a046b88abf26c2c2a314ca5b54e4c808ba801.tar.bz2 | |
Merged revisions 85982 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85982 | antoine.pitrou | 2010-10-30 18:19:14 +0200 (sam., 30 oct. 2010) | 4 lines
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/test')
| -rw-r--r-- | Lib/test/test_fileio.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py index cb6ec8e..a63ba06 100644 --- a/Lib/test/test_fileio.py +++ b/Lib/test/test_fileio.py @@ -341,6 +341,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(): |
