Dima Tisnek <[email protected]> added the comment:
Perhaps it's possible to vendor asynctest mock in the same vein as `mock` found
it's way into unittest?
The real power of `asynctest` is in constructs like:
with asynctest.mock.patch("module.Class", autospec=True):
...
Where mock instances know what methods are async.
----------
nosy: +Dima.Tisnek
versions: +Python 3.8 -Python 3.6, Python 3.7
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue26467>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com