Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.14] gh-133982: Run unclosed file test on all io implementations (gh-134165)#134433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ambv merged 1 commit intopython:3.14frommiss-islington:backport-5b0e827-3.14
May 21, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedMay 21, 2025
edited by bedevere-appbot
Loading

Updatetest_io_check_warn_on_dealloc to useself. 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 commit5b0e827)

Co-authored-by: Cody Maloneycmaloney@users.noreply.github.com

…thongh-134165)Update `test_io` `_check_warn_on_dealloc` to use `self.` to dispatch todifferent I/O implementations.Update the `_pyio` implementation to match expected behavior, using thesame `_dealloc_warn` design as the C implementation uses to report thetopmost `__del__` object.The FileIO one now matches all the others, so can use IOBase. There wasa missing check on closing (self._fd must be valid), add that check(cherry picked from commit5b0e827)Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
@ambvambv merged commitfade04e intopython:3.14May 21, 2025
43 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@miss-islington@ambv@cmaloney

[8]ページ先頭

©2009-2025 Movatter.jp