]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-138013: Move I/O tests to test_io (#138365)
authorCody Maloney <cmaloney@users.noreply.github.com>
Wed, 3 Sep 2025 09:37:06 +0000 (02:37 -0700)
committerGitHub <noreply@github.com>
Wed, 3 Sep 2025 09:37:06 +0000 (11:37 +0200)
commit974532e75888a82adbaa11c832fe67c132832b65
treebeedfa8d7bdd21da7f48c29b8edf7aacf9161694
parent7274d076077212ecda4e83932dcc4ae69c62af58
gh-138013: Move I/O tests to test_io (#138365)

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>
Lib/test/libregrtest/findtests.py
Lib/test/test_io/__init__.py
Lib/test/test_io/test_bufferedio.py [moved from Lib/test/test_bufio.py with 100% similarity]
Lib/test/test_io/test_file.py [moved from Lib/test/test_file.py with 100% similarity]
Lib/test/test_io/test_fileio.py [moved from Lib/test/test_fileio.py with 100% similarity]
Lib/test/test_io/test_general.py
Lib/test/test_io/test_largefile.py [moved from Lib/test/test_largefile.py with 100% similarity]
Lib/test/test_io/test_memoryio.py [moved from Lib/test/test_memoryio.py with 100% similarity]
Lib/test/test_io/test_univnewlines.py [moved from Lib/test/test_univnewlines.py with 100% similarity]