Title: [3.14] gh-133982: Run unclosed file test on all io implementations (gh-134165) by miss-islington · Pull Request #134433 · python/cpython · GitHub
Open Graph Title: [3.14] gh-133982: Run unclosed file test on all io implementations (gh-134165) by miss-islington · Pull Request #134433 · python/cpython
X Title: [3.14] gh-133982: Run unclosed file test on all io implementations (gh-134165) by miss-islington · Pull Request #134433 · python/cpython
Description: Update test_io _check_warn_on_dealloc to use self. to dispatch to different I/O implementations. Update the _pyio implementation to match expected behavior, using the same _dealloc_warn design as the C implementation uses to report the topmost __del__ object. The FileIO one now matches all the others, so can use IOBase. There was a missing check on closing (self._fd must be valid), add that check (cherry picked from commit 5b0e827) Co-authored-by: Cody Maloney cmaloney@users.noreply.github.com Issue: gh-133982
Open Graph Description: Update test_io _check_warn_on_dealloc to use self. to dispatch to different I/O implementations. Update the _pyio implementation to match expected behavior, using the same _dealloc_warn design as t...
X Description: Update test_io _check_warn_on_dealloc to use self. to dispatch to different I/O implementations. Update the _pyio implementation to match expected behavior, using the same _dealloc_warn design as t...
Opengraph URL: https://github.com/python/cpython/pull/134433
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5731f537-bc41-5570-1ac1-62cde5e5d24e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BD70:356616:17554C4:1FE16EB:6A546CE5 |
| html-safe-nonce | 64ae26b683ef7b3fd882aa689653a813de5c2af050dd735695d85c12018192a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDcwOjM1NjYxNjoxNzU1NEM0OjFGRTE2RUI6NkE1NDZDRTUiLCJ2aXNpdG9yX2lkIjoiODAxOTUwNzY2NDk0MDk4NTU3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3cdf64f9b20b19a5a66871af49a0d62e39924edff28038b51a32f4b8609da131 |
| hovercard-subject-tag | pull_request:2534651071 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/134433/files |
| twitter:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| og:image:alt | Update test_io _check_warn_on_dealloc to use self. to dispatch to different I/O implementations. Update the _pyio implementation to match expected behavior, using the same _dealloc_warn design as t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width