[issue40406] MagicMock __aenter__ should be AsyncMock(return_value=MagicMock())

Thomas Grainger report at bugs.python.org
Mon Apr 27 09:34:16 EDT 2020


Thomas Grainger <tagrain at gmail.com> added the comment:

Perhaps there could be a MagicAsyncMock that supports .__await__ and .__aenter__ etc?

----------

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


More information about the Python-bugs-list mailing list