-
Notifications
You must be signed in to change notification settings - Fork 163
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
Migrate asynctest to stdlib's AsyncMock #475
Comments
What's the recommended approach for mocking coroutines on Python 3.7? Is there any backport of try:
# Python 3.8 already has this
from mock import AsyncMock as CoroutineMock
except ImportError:
from asynctest import CoroutineMock |
we could take HA's core approach and just import |
This was referenced Sep 14, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Asynctest doesn't work with Python 3.8 and above.
Asynctest upstream is aware of this breakage and recommends using the built-in AsyncMock instead.
See also Martiusweb/asynctest#144 and Martiusweb/asynctest#126
The text was updated successfully, but these errors were encountered: