Skip to content

improve test_tasks to use correct idiom for starting task in asyncio #130257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Feb 18, 2025

The test should use the correct idiom for starting the task, loop._run_once is private API which should not be used directly, instead use asyncio.sleep(0) for 1 event loop cycle.

@bedevere-app bedevere-app bot added tests Tests in the Lib/test dir awaiting core review labels Feb 18, 2025
@kumaraditya303 kumaraditya303 enabled auto-merge (squash) February 18, 2025 12:01
@kumaraditya303 kumaraditya303 merged commit 2e3e653 into python:main Feb 18, 2025
46 checks passed
@kumaraditya303 kumaraditya303 deleted the task-tests branch February 18, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip issue skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant