Title: Use implemenation-specific I/O open / constructors in tests · Issue #133982 · python/cpython · GitHub
Open Graph Title: Use implemenation-specific I/O open / constructors in tests · Issue #133982 · python/cpython
X Title: Use implemenation-specific I/O open / constructors in tests · Issue #133982 · python/cpython
Description: Bug report Bug description: Most I/O tests are setup for running on multiple implementations. As tests have been added for bug fixes some now use open() or the class constructor directly instead of the self. version which does implementa...
Open Graph Description: Bug report Bug description: Most I/O tests are setup for running on multiple implementations. As tests have been added for bug fixes some now use open() or the class constructor directly instead of...
X Description: Bug report Bug description: Most I/O tests are setup for running on multiple implementations. As tests have been added for bug fixes some now use open() or the class constructor directly instead of...
Opengraph URL: https://github.com/python/cpython/issues/133982
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use implemenation-specific I/O open / constructors in tests","articleBody":"# Bug report\n\n### Bug description:\n\nMost I/O tests are setup for running on multiple implementations. As tests have been added for bug fixes some now use `open()` or the class constructor directly instead of the `self.` version which does implementation delegation. This means that some features are not tested when the I/O module implementation is changed (ex. `_io`, `_pyio`).\n\nI'm planning to use this as a meta issue as I find individual cases and update the test, fixing up implementations as needed to get tests passing.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-133983\n* gh-134165\n* gh-134428\n* gh-134429\n* gh-134433\n* gh-134434\n* gh-135363\n* gh-135364\n* gh-136148\n* gh-136149\n* gh-136218\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/cmaloney","@type":"Person","name":"cmaloney"},"datePublished":"2025-05-13T19:42:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/133982/cpython/issues/133982"}
| 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:f0ec4e12-9011-1857-d155-83caadbfdbd1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECFC:272982:E1436A:12BF2DE:6A532B4E |
| html-safe-nonce | 1ca7fd508acbbb08735485dfdf7d5d54f94b7c9876f2a9898d89d0bbb0adb0dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0ZDOjI3Mjk4MjpFMTQzNkE6MTJCRjJERTo2QTUzMkI0RSIsInZpc2l0b3JfaWQiOiI3NTk0MjkxODY2NjgzNzc5OTE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5032230f910e7c026a0596f230731c22f57c73ae52109d3d4fb0f729cbe2fdcf |
| hovercard-subject-tag | issue:3061059639 |
| 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/133982/issue_layout |
| twitter:image | https://opengraph.githubassets.com/28c1347124d3e98ab5793a183508b7fa3567ef0771419606c35c21fc90e2d2c7/python/cpython/issues/133982 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/28c1347124d3e98ab5793a183508b7fa3567ef0771419606c35c21fc90e2d2c7/python/cpython/issues/133982 |
| og:image:alt | Bug report Bug description: Most I/O tests are setup for running on multiple implementations. As tests have been added for bug fixes some now use open() or the class constructor directly instead of... |
| 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 | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width