-
Notifications
You must be signed in to change notification settings - Fork 159
0.6.0 version causing test failures with: There is no current event loop in thread 'MainThread' #54
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
Same problem here, using quamash event loop. |
I'll take a look when I can, but getting me a minimal example would speed this up a lot. |
@Tinche you can use my example (noted in this issue) if would like. It is open source. |
The problem is pytest-aiohttp. Pytest-aiohttp treats every coroutine as a test function, so when you have this:
both I'm opposed to treating any coroutine (i.e. without a marker) as a In the short term, just remove the |
As linked above, I have found similar regression without pytest-aiohttp. |
Got Error:
For example:
https://travis-ci.org/botstory/botstory/builds/236994191#L594
Sources of unit test:
https://github.com/botstory/botstory/blob/develop/botstory/chat_test.py#L38
And the same error for many other async tests which are marked with
@pytest.mark.asyncio
, with fixtures and without it.Deps are: https://github.com/botstory/botstory/blob/develop/requirements.txt
previous version works fine, except deprecation warning
The text was updated successfully, but these errors were encountered: