Skip to content

Conversation

cmaloney
Copy link
Contributor

@cmaloney cmaloney 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:

>>> import test.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
Contributor Author

cmaloney commented Sep 2, 2025

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

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

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@vstinner vstinner merged commit 974532e into python:main Sep 3, 2025
51 checks passed
@vstinner
Copy link
Member

vstinner commented Sep 3, 2025

Merged, thanks.

@cmaloney cmaloney deleted the test_io_bufferedio branch September 3, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants