-
Notifications
You must be signed in to change notification settings - Fork 41
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
inspect.isawaitable() returns False when the argument is a CoroutineMock #136
Comments
|
Here's a testcase:
I'm using Python 3.7.3. |
Yes, this is because
and thus: Note that this is not actually enforced by the unit tests. |
Re-opening to add unit tests to ensure CoroutineMock is tested against inspect.isawaitable(). |
Since a
CoroutineMock
is awaitableinspect.isawaitable()
should returnTrue
.These are the criteria for an awaitable object.
The text was updated successfully, but these errors were encountered: