[issue24651] Mock.assert* API is in user namespace

Robert Collins report at bugs.python.org
Wed Jul 29 00:02:25 CEST 2015


Robert Collins added the comment:

I don't mind if this is open or closed: we've now got a clear set of requirements *should* someone want to work on it::

 - it would feel as convenient to use as the current API does

 - it would be possible to be both forward and backwards compatible with the existing API indefinitely: There are lots of users of mock, and offering a [presumably] improved API is not worth turning all that code into an instant sea-anchor: if we're going to change this, we need to do so in a -very- graceful fashion, because unlike e.g. the mock_open things that only affect some users of mock, this would (if done poorly) break every user ever.


I think its possible to deliver that systematically across the API (not just the asserts - the whole thing) - but its nontrivial.

----------
stage:  -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24651>
_______________________________________


More information about the Python-bugs-list mailing list