Title: Move Buffered tests from test_io to test_bufio · Issue #138013 · python/cpython · GitHub
Open Graph Title: Move Buffered tests from test_io to test_bufio · Issue #138013 · python/cpython
X Title: Move Buffered tests from test_io to test_bufio · Issue #138013 · python/cpython
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 spe...
Open Graph 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...
X 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...
Opengraph URL: https://github.com/python/cpython/issues/138013
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Move Buffered tests from test_io to test_bufio","articleBody":"# Feature or enhancement\n\n### Proposal:\n\n`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)\n\nAbout 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. \n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-138153\n* gh-138365\n* gh-138366\n* gh-138475\n* gh-138771\n* gh-139079\n* gh-139173\n* gh-139454\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/cmaloney","@type":"Person","name":"cmaloney"},"datePublished":"2025-08-21T03:56:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/138013/cpython/issues/138013"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dedc5b1f-e933-1c2e-c9e0-fdcef6fb0c41 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8262:726BD:912B3F:C68DF4:6A50832F |
| html-safe-nonce | c33cccbdffcb9097d06e5754af8f93024f5c5798bde0e95ffb1f62de6461ba5a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjYyOjcyNkJEOjkxMkIzRjpDNjhERjQ6NkE1MDgzMkYiLCJ2aXNpdG9yX2lkIjoiNDAzODQ2MzQ0NTYxNTU0MzA4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 756bfb0fc56bc3c9cc66169207e66308e68a43898c181b73bac0ddd876a53be9 |
| hovercard-subject-tag | issue:3340191643 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/138013/issue_layout |
| twitter:image | https://opengraph.githubassets.com/21ca2e4d92506104fb1df96b576494760044d80ac3827dd09b0ab042f373139b/python/cpython/issues/138013 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/21ca2e4d92506104fb1df96b576494760044d80ac3827dd09b0ab042f373139b/python/cpython/issues/138013 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cmaloney |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width