cpython/Lib/test/test_io
Yongtao Huang 375e372c66
gh-143689: Fix BufferedReader.read1 leaving object in reentrant state on error (#143690)
BufferedReader.read1() could leave the buffered object in a
reentrant (locked) state when an exception was raised while
allocating the output buffer.

This change ensures the internal buffered lock is always released
on error, keeping the object in a consistent state after failures.

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
2026-01-19 15:09:30 +01:00
..
__init__.py
__main__.py
test_bufferedio.py gh-143689: Fix BufferedReader.read1 leaving object in reentrant state on error (#143690) 2026-01-19 15:09:30 +01:00
test_file.py
test_fileio.py
test_general.py gh-60107: Remove a copy from RawIOBase.read (#141532) 2025-11-20 17:37:04 +00:00
test_largefile.py gh-129005: Remove copies from _pyio using take_bytes (#141539) 2025-11-18 10:10:32 +01:00
test_memoryio.py gh-143602: Fix duplicate buffer exports in io.BytesIO.write (#143629) 2026-01-15 16:08:55 +01:00
test_signals.py
test_textio.py gh-142594: fix by property calls io.TextIOWrapper.detach (GH-142706) 2025-12-15 15:13:58 +01:00
test_univnewlines.py
utils.py