[issue17013] Allow waiting on a mock

Ilya Kulakov report at bugs.python.org
Wed Jun 10 09:57:37 EDT 2020


Ilya Kulakov <kulakov.ilya at gmail.com> added the comment:

As far as I understand it introduces 3 methods that may clash. It's unlikely but (I speculate)
is still more likely than an identity check with called.

That being said, the PR can be redone as a subclass. But that implementation will not play
as nicely with the planned `awaited` property for asyncio mocks (see description in the PR).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue17013>
_______________________________________


More information about the Python-bugs-list mailing list