mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #10253: FileIO leaks a file descriptor when trying to open a file
for append that isn't seekable. Patch by Brian Brazil.
This commit is contained in:
parent
daf83acf00
commit
8d2b51b46a
3 changed files with 10 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue