Skip to content

gh-128404: split test_asyncgen.py into tests that require a working socket and tests that do not - #128443

Open
graingert wants to merge 9 commits into
python:mainfrom
graingert:remove-requires-working-socket-from-some-of-test-asyncgen
Open

graingert wants to merge 9 commits into
python:mainfrom
graingert:remove-requires-working-socket-from-some-of-test-asyncgen

Conversation

@graingert

@graingert graingert commented Jan 3, 2025

Copy link
Copy Markdown
Contributor

@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jan 3, 2025
Comment thread Lib/test/test_asyncgen.py Outdated
@graingert
graingert marked this pull request as ready for review January 3, 2025 11:47
@graingert graingert changed the title gh-128404: remove requires_working_socket from some of test_asyncgen.py gh-128404: split test_asyncgen.py into tests that require a working socket and tests that do not Jan 3, 2025
@graingert
graingert requested a review from Eclips4 January 4, 2025 07:18
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 20, 2026
@graingert
graingert force-pushed the remove-requires-working-socket-from-some-of-test-asyncgen branch from 8d86513 to be03eda Compare August 31, 2026 18:49
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Sep 2, 2026
graingert and others added 6 commits September 2, 2026 08:26
The last import_module() call site went away when
`asyncio = import_module("asyncio")` became a plain import, leaving
the import orphaned and tripping ruff's F401 in the lint job.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
It does not use the event loop, so the tearDown assertion that the
loop was used fails when it stays in AsyncGenAsyncioTest.
@graingert
graingert force-pushed the remove-requires-working-socket-from-some-of-test-asyncgen branch from cb65eb5 to 2c74bcf Compare September 2, 2026 07:35
@graingert

Copy link
Copy Markdown
Contributor Author

@Eclips4 I've rebased this and it's ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant