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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
@bedevere-bot bedevere-bot added tests 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
loop.close()
asyncio.set_event_loop_policy(None)
asyncio.run(coro)
asyncio.set_event_loop_policy(None)
Copy link
Member

@vstinner vstinner May 23, 2022

Choose a reason for hiding this comment

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

Should it be also called if an exception is raised?

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.

3 participants