FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-138013: Move I/O tests to test_io by cmaloney · Pull Request #138365 · python/cpython · GitHub

/ cpython Public

gh-138013: Move I/O tests to test_io - #138365

Merged
vstinner merged 3 commits into
python:mainfrom
cmaloney:test_io_bufferedio
Sep 3, 2025
Merged

gh-138013: Move I/O tests to test_io#138365
vstinner merged 3 commits into
python:mainfrom
cmaloney:test_io_bufferedio

Conversation

cmaloney commented Sep 1, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

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 commented Sep 2, 2025

Copy link
Copy Markdown
Contributor Author

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

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

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Comment thread Lib/test/test_io/__init__.py Outdated
Comment thread Lib/test/test_io/__init__.py Outdated
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
vstinner merged commit 974532e into python:main Sep 3, 2025
51 checks passed

vstinner commented Sep 3, 2025

Copy link
Copy Markdown
Member

Merged, thanks.

cmaloney 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 <9087854+AA-Turner@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL