Skip to content

Conversation

@cmaloney
Copy link
Contributor

@cmaloneycmaloney commented Sep 1, 2025

Centralize io tests into the test_io module so they are easier to find and work on. This will make it easier to split test_general which takes 30+ seconds in a debug build on my machine.

This renames test_bufio to be test_bufferedio so that it matches the implementation file name (bufferedio.c).

Validation performed

Tests are run in parallel after change:

./python.exe -m test test_io -uall,largefile,extralargefile -M12G -j8

Docstring reformat in test_io/__init__.py looks reasonable:

>>>importtest.test_io>>>help(test.test_io)

Centralize `io` tests into the `test_io` module so they are easier to find and work on. This will make it easier to split `test_general` which takes 30+ seconds in a debug build on my machine. This renames `test_bufio` to be `test_bufferedio` so that it matches the implementation file name (`bufferedio.c`). Validation performed: Tests are run in parallel after change: ```bash ./python.exe -m test test_io -uall,largefile,extralargefile -M12G -j8 ``` Docstring reformat in `test_io/__init__.py` looks reasonable: ```python >>> import test.test_io >>> help(test.test_io) ```
@cmaloney
Copy link
ContributorAuthor

Can this get skip news as its a test only change?

@ZeroIntensityZeroIntensity added tests Tests in the Lib/test dir skip news labels Sep 2, 2025
Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vstinnervstinner merged commit 974532e into python:mainSep 3, 2025
51 checks passed
@vstinner
Copy link
Member

Merged, thanks.

@cmaloneycmaloney deleted the test_io_bufferedio branch September 3, 2025 16:49
lkollar pushed a commit to lkollar/cpython that referenced this pull request Sep 9, 2025
Centralize `io` tests into the `test_io` module so they are easier to find and work on. This will make it easier to split `test_general` which takes 30+ seconds in a debug build on my machine. This renames `test_bufio` to be `test_bufferedio` so that it matches the implementation file name (`bufferedio.c`). Validation performed: Tests are run in parallel after change: ```bash ./python.exe -m test test_io -uall,largefile,extralargefile -M12G -j8 ``` Docstring reformat in `test_io/__init__.py` looks reasonable: ```python >>> import test.test_io >>> help(test.test_io) ``` Co-authored-by: Adam Turner <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@cmaloney@vstinner@AA-Turner@ZeroIntensity