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

test_sync_async_add: After closing the default event loop, set a new one #22

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

encukou
Copy link
Contributor

@encukou encukou commented Jun 10, 2022

TestAsyncCase.test_sync_async_add leaves the default loop closed. If TestAsyncCaseWithCustomLoop.test_await_async_add runs right after it, it will fail.
As far as I can see from the other test methods, the default loop should be reset if it's closed.

Usually, this issue is masked by tests that run in between these two and re-set the default event loop as a side effect. It can be reproduced with pytest -k 'test_await_async_add or test_sync_async_add', or on Python 3.11 with #21 merged (cc @hroncok).

@hroncok
Copy link
Contributor

hroncok commented Jun 10, 2022

Thanks.

@kwarunek kwarunek merged commit fe63796 into kwarunek:master Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants