-
Notifications
You must be signed in to change notification settings - Fork 159
got Future <Future pending> attached to a different loop #166
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
Comments
Your error message (attached to a different loop) seems similar to previous #162 that I reported. Please let us know your feedback EDIT 1:Nevertheless, I have provided a PR with some additional changes in your pytest_asyncio_issue code. See as reference: EDIT 2:Only with the suggested changes in your code, see PR, it works fine with current pytest-asyncio V0.12.0. |
I had a hellish two weeks at work so the release got pushed back, I'll try to release today. |
This issue was reported for pytest-asyncio-0.12.0. As far as I understand, the problem has been solved. If not, please retest with the latest version of pytest-asyncio and reopen the issue or file a new one. |
I'm working on a pytest/pytest-asyncio/asyncio test, however, I encounterd a strange issue "got Future attached to a different loop"
Not quite sure if my issue is exactly the same as others.
I created client/server tests using pytest and asyncio, the fixture would return a client object contains asyncio streams object.
But while multiple tests executed in tests, the error "got Future attached to a different loop" shows. (the test would pass if only one test func in script)
And have been studying for a while and have no clue how to move on.
Any idea which step went wrong? and Anyone knows how to solve the issue?
Thanks
my test code:
https://github.com/kaijajan/pytest_asyncio_issue
The following block is the log.
The text was updated successfully, but these errors were encountered: