-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Use implemenation-specific I/O open / constructors in tests #133982
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cmaloney
added a commit
to cmaloney/cpython
that referenced
this issue
May 13, 2025
cmaloney
added a commit
to cmaloney/cpython
that referenced
this issue
May 18, 2025
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.
cmaloney
added a commit
to cmaloney/cpython
that referenced
this issue
May 18, 2025
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.
ambv
pushed a commit
that referenced
this issue
May 21, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 21, 2025
(cherry picked from commit 84d5f8d) Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 21, 2025
(cherry picked from commit 84d5f8d) Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
ambv
pushed a commit
that referenced
this issue
May 21, 2025
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
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 21, 2025
…thongh-134165) 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>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 21, 2025
…thongh-134165) 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>
This was referenced May 21, 2025
ambv
pushed a commit
that referenced
this issue
May 21, 2025
…h-134165) (gh-134433) 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>
ambv
pushed a commit
that referenced
this issue
May 21, 2025
…h-134165) (gh-134434) 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>
lkollar
pushed a commit
to lkollar/cpython
that referenced
this issue
May 26, 2025
lkollar
pushed a commit
to lkollar/cpython
that referenced
this issue
May 26, 2025
…thongh-134165) 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
cmaloney
added a commit
to cmaloney/cpython
that referenced
this issue
Jun 10, 2025
cmaloney
added a commit
to cmaloney/cpython
that referenced
this issue
Jun 10, 2025
This was referenced Jun 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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 theself.
version which does implementation delegation. This means that some features are not tested when the I/O module implementation is changed (ex._io
,_pyio
).I'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.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: