[issue26467] Add async magic method support to unittest.mock.Mock
Yusuke Tsutsumi
report at bugs.python.org
Sat Jun 4 18:46:43 EDT 2016
Yusuke Tsutsumi added the comment:
I'm interested in taking this on. I'm considering for this approach, creating a new MagicProxy class specifically for async, and assigning __aexit__ and __aenter__ to those.
The __call__ method itself has to be detected as asynchronous, and I don't believe it's possible for a __call__ to behave appropriately for both asynchronous and synchronous cases.
----------
nosy: +tsutsumi
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26467>
_______________________________________
More information about the Python-bugs-list
mailing list