This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lisroach
Recipients lisroach, xtreak
Date 2019-09-20.04:03:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568952201.67.0.449348428739.issue38161@roundup.psfhosted.org>
In-reply-to
Content
Yeah I think the current `awaited` ought to at least be a private variable, since people will assume it works like a boolean to match `.called`. Then we could add a new, proper, `awaited` that would function like:

>>> mock = AsyncMock()
>>> cr_mock = mock()
>>> mock.called
True
>>> mock.awaited
False
>>> await cr_mock
>>> mock.awaited
True
History
Date User Action Args
2019-09-20 04:03:21lisroachsetrecipients: + lisroach, xtreak
2019-09-20 04:03:21lisroachsetmessageid: <1568952201.67.0.449348428739.issue38161@roundup.psfhosted.org>
2019-09-20 04:03:21lisroachlinkissue38161 messages
2019-09-20 04:03:21lisroachcreate