-
Notifications
You must be signed in to change notification settings - Fork 147
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
AttributeError: module 'asyncio' has no attribute 'ensure_future' with pytest-xdist #55
Comments
Hmm, that MR seems to pass. On my mac, I get:
But also:
|
I can't reproduce this, even on macOs. The error makes me think pytest-xdist is using a different Python to run its tests. Running under pytest-xdist I get another failure, but this is due to the tests assuming they're running in a single process. |
Ok, let me try and debug some more tonight. If you can't reproduce it then
I guess it's my setup.
…On 5 Jun 2017 13:31, "Tin Tvrtković" ***@***.***> wrote:
I can't reproduce this, even on macOs. The error makes me think
pytest-xdist is using a different Python to run its tests.
Running under pytest-xdist I get another failure, but this is due to the
tests assuming they're running in a single process.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-sh_xnwa2rGIK8pEvKL__ADbZmfK6kks5sA_U4gaJpZM4NvbRg>
.
|
Ahh, it can't be that though @Tinche - if you look at the error stacktrace it's pointing at the correct Python version (3.6). |
I'm having the exact same problem, but on ubuntu. Details are: Ubuntu 16.04.3 LTS Here's the full ouput of aiohtp==2.2.5 |
I suggest closing the issue. |
If you attempt to use
pytest-asyncio
withpytest-xdist
, and runpy.test -n 4
it will fail with the exception in the title at this line.Running it without
-n 4
works as expected. I'm not sure what's going on here or why that attribute would be missing.The text was updated successfully, but these errors were encountered: