cpython/Lib/test/test_io
Cody Maloney 0f0a362768
gh-140607: Validate returned byte count in RawIOBase.read (#140611)
While `RawIOBase.readinto` should return a count of bytes between 0 and
the length of the given buffer, it is not required to. Add validation
inside RawIOBase.read() that the returned byte count is valid.

Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-10-27 18:06:46 +00:00
..
__init__.py gh-138013: Move I/O tests to test_io (#138365) 2025-09-03 11:37:06 +02:00
__main__.py
test_bufferedio.py gh-138013: Split BufferedIO tests from test_io.test_general (#139454) 2025-10-01 09:06:26 +02:00
test_file.py gh-138013: Move I/O tests to test_io (#138365) 2025-09-03 11:37:06 +02:00
test_fileio.py gh-69528: Distinguish between file modes "wb+" and "rb+" (GH-137834) 2025-10-21 20:33:30 +03:00
test_general.py gh-140607: Validate returned byte count in RawIOBase.read (#140611) 2025-10-27 18:06:46 +00:00
test_largefile.py gh-138013: Move I/O tests to test_io (#138365) 2025-09-03 11:37:06 +02:00
test_memoryio.py gh-138013: Move I/O tests to test_io (#138365) 2025-09-03 11:37:06 +02:00
test_signals.py gh-138013: Split SignalsTest from test_io.test_general (#139079) 2025-09-19 18:21:50 +00:00
test_textio.py gh-138013: Split TextIO tests from test_io.test_general (#139173) 2025-09-30 17:37:15 +02:00
test_univnewlines.py gh-138013: Move I/O tests to test_io (#138365) 2025-09-03 11:37:06 +02:00
utils.py gh-138013: Move I/O test infrastructre to test_io.utils (#138475) 2025-09-11 12:45:30 +02:00