Skip to content
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

GH-89369: fix test_contextlib_async to finalize event loop after each test #93074

Merged
merged 3 commits into from May 24, 2022

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented May 22, 2022

Closes #89369

@kumaraditya303 kumaraditya303 requested a review from 1st1 as a code owner May 22, 2022 14:35
@bedevere-bot bedevere-bot added tests Tests in the Lib/test dir awaiting review labels May 22, 2022
@kumaraditya303 kumaraditya303 changed the title fix test_contextlib_async to finalize event loop after each test GH-89369: fix test_contextlib_async to finalize event loop after each test May 22, 2022
@kumaraditya303 kumaraditya303 self-assigned this May 22, 2022
@vstinner
Copy link
Member

I confirm that this PR fix #89369 for me.

@vstinner vstinner merged commit d2ef66a into python:main May 24, 2022
@miss-islington
Copy link
Contributor

Thanks @kumaraditya303 for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label May 24, 2022
@bedevere-bot
Copy link

GH-93170 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label May 24, 2022
@bedevere-bot
Copy link

GH-93171 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 24, 2022
… test (pythonGH-93074)

Use asyncio.run().
(cherry picked from commit d2ef66a)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 24, 2022
… test (pythonGH-93074)

Use asyncio.run().
(cherry picked from commit d2ef66a)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
@vstinner
Copy link
Member

Thanks for the fix! Merged.

miss-islington added a commit that referenced this pull request May 24, 2022
…H-93074)

Use asyncio.run().
(cherry picked from commit d2ef66a)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
miss-islington added a commit that referenced this pull request May 24, 2022
…H-93074)

Use asyncio.run().
(cherry picked from commit d2ef66a)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
@kumaraditya303 kumaraditya303 deleted the gh-89369 branch November 8, 2022 07:08
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.

test_contextlib_async logs "Task was destroyed but it is pending" messages
4 participants