handle case when no event loop exists (support pytest-aiohttp)#64
Conversation
|
@asvetlov, hi see conftest.py in my comment above How do you think, is it ok to run pytest-asyncio and pytest-aiohttp together in such manner? |
|
Yea! This is very usefull! |
|
Looks good at first glance |
|
The patch looks simple enough, I'd be willing to merge it in. But wouldn't a better course of action be to reach out to pytest-aiohttp and see if they would be willing to depend on pytest-asyncio, instead of merging in workarounds? |
|
Now it's |
|
test added (copy pasted from #65) |
|
+1 I'm hitting this problem as well. Would be happy to see this getting merged in. |
|
Alright, thanks for the contribution. My plea for pytest-asyncio and pytest-aiohttp to work better together still stands :) |
|
can we release minor version with this fix? |
|
I'll get it out over the weekend. |
Solves this:
And this:
Now pytest-asyncio and pytest-aiohttp can act together with this conftest.py: