-
Notifications
You must be signed in to change notification settings - Fork 159
Latest version causing test failures #52
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
Not necessarily, might be a bug in our fixture handling code. Can you get me a minimal example? |
I'll see if I have time to do that later. The package the test failures started in is open source though. Here is failure output: https://travis-ci.org/plone/guillotina/builds/237114876 and here is the test server being created: https://github.com/plone/guillotina/blob/master/guillotina/tests/conftest.py#L198 But that's a lot of code to digest and not sure there is anything obvious there. I'll see what I can do when I have some more time. |
As far as I can see, your tests are actually pytest-aiohttp, not pytest-asyncio tests. You have async def tests without the I see you have some async def fixtures too, which weren't supported in pytest-asyncio until 0.6. So these were being picked up by pytest-aiohttp too. So I'm guessing now pytest-asyncio and pytest-aiohttp are in conflict. |
I have failure on 0.6.0 too, but due setup
In previous version asyncio-pytest did not require initialized old loop. But now... |
Do you have |
@Tinche yes, pytest-aiohttp==0.1.3 |
Unfortunately pytest-asyncio isn't compatible with pytest-aiohttp any longer - you're seeing the conflicts. |
Putting this code into
But where is real problem placed? pytest-aiohttp or pytest-asyncio? |
The main fail when pytest-aiohttp installed - parameterized async fixtures did not work |
Shame that they aren't able to coexist presently — I have a mix of code, some of which uses Nuking the default loop in |
Closed by #52. |
Getting:
on many of my tests now.
Downgrading to 0.5.0 works. Is there something I'm doing wrong in my tests?
The text was updated successfully, but these errors were encountered: