Skip to content

gh-161458: Move test_winconsoleio and test_file_eintr into test_io - #161460

Merged
cmaloney merged 6 commits into
python:mainfrom
cmaloney:io_test_reorg
Nov 6, 2026
Merged

cmaloney merged 6 commits into
python:mainfrom
cmaloney:io_test_reorg

Conversation

@cmaloney

@cmaloney cmaloney commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Missed these tests in earlier centralizing. Update the test_io comment to talk about what isn't in the folder rather than what is in it.

cmaloney and others added 6 commits November 5, 2026 21:17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t_free_threading

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test_free_threading package skipped these on GIL builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It goes stale whenever a module is added or moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot mentioned this pull request Nov 6, 2026
@cmaloney cmaloney added skip news 🔨 test-with-buildbots Test PR w/ buildbots; report in status section labels Nov 6, 2026
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @cmaloney for commit 03f4f2f 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F161460%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 6, 2026

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.

Hmm, don't all free-threading tests live there, I generally thought we keep them there?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Currently everything but asyncio. Given free threading is becoming the standard and this has very little "common" free threading needs I'd like if can do next to other module pieces / it's part of what I need to keep working while I modify things..

For this my particular goal is being able to easily go from _io -> [_io, _ionibbler] which is easier to do with them largely in one place. There's currently infra in test_io/utils.py for _pyio vs _io (although I want the _ionibbler to be a little different shape than that if I can)

@vstinner 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.

LGTM. I'm fine with ‎Lib/test/test_free_threading/test_io.py‎ => Lib/test/test_io/test_free_threading.py move. This test doesn't use anything from test_free_desktop package. It implements its own ThreadSafetyMixin.

@vstinner

vstinner commented Nov 6, 2026

Copy link
Copy Markdown
Member

Refleak buildbots failed with test_typing leaked [4944, 4944, 4944] references, sum=14832 which is unrelated and has already been fixed in the main branch.

Alpine is already failing on the main branch, it's unrelated to this change.

@cmaloney

cmaloney commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Looking through bots and actions this is still getting run by NoGIL buildbots and skipped by regular ones; buildbot failures are independent of this change; thanks @vstinner for investigating.

With the last restructing more backports needed to be manual; if you run into any feel free to ping me and I'll take care of them.

@vstinner

vstinner commented Nov 6, 2026

Copy link
Copy Markdown
Member

In general, we do backport test refactoring changes to reduce the risk of merge conflicts on following test backports.

@cmaloney cmaloney added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes and removed needs backport to 3.14 bugs and security fixes labels Nov 6, 2026
@cmaloney
cmaloney merged commit 5106b91 into python:main Nov 6, 2026
180 of 196 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @cmaloney for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-app

bedevere-app Bot commented Nov 6, 2026

Copy link
Copy Markdown

GH-161523 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Nov 6, 2026
@cmaloney
cmaloney deleted the io_test_reorg branch November 6, 2026 23:32
cmaloney added a commit that referenced this pull request Nov 7, 2026
…t_io (GH-161460) (#161523)

gh-161458: Move test_winconsoleio and test_file_eintr into test_io (GH-161460)

* gh-161458: Move test_file_eintr into test_io
* gh-161458: Move test_winconsoleio into test_io
* gh-161458: Move test_free_threading/test_io into test_io as test_free_threading
* gh-161458: Skip test_io.test_free_threading on GIL builds

   The test_free_threading package skipped these on GIL builds.
* gh-161458: Remove the test module list from the test_io docstring

   It goes stale whenever a module is added or moved.
* gh-161458: Point to I/O tests outside test_io in its docstring
(cherry picked from commit 5106b91)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants