[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

Karthikeyan Singaravelan report at bugs.python.org
Fri Aug 27 03:49:00 EDT 2021


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

Can you please add a sample script to reproduce the problem. It will be also helpful to add how you run the script and also attach the error message you are getting. Given that you have selected Python 3.7 version AsyncMock was added in Python 3.8 . For Python 3.7 you might want to use the backport of mock.

----------
nosy: +xtreak

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


More information about the Python-bugs-list mailing list