]> granicus.if.org Git - python/commit
bpo-32228: Reset raw_pos after unwinding the raw stream (#4858)
authorNitish Chandra <nitishchandrachinta@gmail.com>
Sun, 28 Jan 2018 16:00:09 +0000 (21:30 +0530)
committerAntoine Pitrou <pitrou@free.fr>
Sun, 28 Jan 2018 16:00:09 +0000 (17:00 +0100)
commit059f58ce938d9c3f0286412a4efb1b9131339421
tree4d8ece4c9ab330e0a2e68fd27c49dbee525ec7fb
parent79db11ce99332d62917be9d03b31494b1ff2f96a
bpo-32228: Reset raw_pos after unwinding the raw stream (#4858)

Ensure that ``truncate()`` preserves the file position (as reported by ``tell()``) after writes longer than the buffer size.
Lib/test/test_io.py
Misc/NEWS.d/next/Library/2017-12-22-16-47-41.bpo-32228.waPx3q.rst [new file with mode: 0644]
Modules/_io/bufferedio.c