-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Description
Feature or enhancement
Proposal:
test_io
is currently over 5000 lines long and tests a range of behaviors of lots of distinct io
components. Some work to make it more modular has happened over time and there are a number of tests for specific subsets of io
behavior (see: https://github.com/python/cpython/blob/main/Lib/test/test_io.py#L3-L13), including one for Buffered I/O (test_bufio.py
, 74 lines currently)
About 1200 lines of test_io
are Buffered I/O specific tests which are well isolated / can be moved relatively easily (BufferedReaderTest
, BufferedWriterTest
, BufferedRWPairTest
, and BufferedRandomTest
as well as their Py*
/C*
variants). I'd like to move them from test_io
to test_bufio
to make it simpler/faster to iterate / test / validate Buffered I/O behavior.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
- gh-138013: Move test.test_io to be a module #138153
- gh-138013: Move I/O tests to test_io #138365
- gh-138013: Remove
test_io
load_tests namespace manipulation #138366 - gh-138013: Move I/O test infrastructre to test_io.utils #138475
- gh-138013: Remove load_tests in test_io.test_general #138771
- gh-138013: Split SignalsTest from test_io.test_general #139079
- gh-138013: Split TextIO tests from test_io.test_general #139173
- gh-138013: Split BufferedIO tests from test_io.test_general #139454