[issue17013] Allow waiting on a mock

Ilya Kulakov report at bugs.python.org
Wed Jun 10 09:15:58 EDT 2020


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

> Unfortunately, we take backwards compatibility very seriously in the core team and this is a big downside of this proposal.

Current implementation relies on that:
1. called is almost never used in practice (people just use .assert*)
2. The is True / False is discouraged and is rarely used by itself, let alone in combination with .called

> Wouldn't that also break any mock that is mocking an object with a "called_event" attribute?

It should break them in the same way as "called" breaks them now.

----------

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


More information about the Python-bugs-list mailing list