You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use implemenation-specific I/O open / constructors in tests #133982
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 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.
Activity
pythongh-133982: Update test_bufio to use self.open
pythongh-133982: Run unclosed file test on all io implementations
pythongh-133982: Run unclosed file test on all io implementations
gh-133982: Update test_bufio to use self.open (gh-133983)
pythongh-133982: Update test_bufio to use self.open (pythongh-133983)
pythongh-133982: Update test_bufio to use self.open (pythongh-133983)
gh-133982: Run unclosed file test on all io implementations (gh-134165)
pythongh-133982: Run unclosed file test on all io implementations (py…
pythongh-133982: Run unclosed file test on all io implementations (py…
[3.14] gh-133982: Update test_bufio to use self.open (gh-133983) (gh-…
[3.13] gh-133982: Update test_bufio to use self.open (gh-133983) (gh-…
[3.14] gh-133982: Run unclosed file test on all io implementations (g…
18 remaining items
pythongh-133982: Test _pyio.BytesIO in free-threaded tests (pythongh-…
pythongh-133982: Use implementation-specific `open` in `test_fileio.O…
pythongh-133982: Test _pyio.BytesIO in free-threaded tests (pythongh-…
pythongh-133982: Update test_bufio to use self.open (pythongh-133983)
pythongh-133982: Run unclosed file test on all io implementations (py…
pythongh-133982: Use implementation-specific `open` in `test_fileio.O…
pythongh-133982: Test _pyio.BytesIO in free-threaded tests (pythongh-…
pythongh-133982: Use implementation-specific `open` in `test_fileio.O…
pythongh-133982: Test _pyio.BytesIO in free-threaded tests (pythongh-…
pythongh-133982: Refer to implementation specific mocks
pythongh-133982: Refer to implementation specific mocks
cmaloney commentedon Nov 7, 2025
Closing, I think these are all fixed.
test_largefilethe one instance is inTestSocketSendfilewhich is_ioonly.pythongh-133982: Update test_bufio to use self.open (pythongh-133983)
pythongh-133982: Run unclosed file test on all io implementations (py…