Message254464
>>> asyncio.iscoroutinefunction(unittest.mock.Mock())
<Mock name='mock._is_coroutine' id='4544068072'>
Yeah, I already had this issue when I wrote unit tests using mock :-/ I didn't find an obvious fix for this issue, and it's quite easy to workaround it.
It looks like the "m._is_coroutine = False" is not used in asyncio tests. I don't recall how I worked around the issue in asyncio tests... |
|
Date |
User |
Action |
Args |
2015-11-10 21:53:45 | vstinner | set | recipients:
+ vstinner, gvanrossum, yselivanov, luhn |
2015-11-10 21:53:45 | vstinner | set | messageid: <1447192425.94.0.68798086103.issue25599@psf.upfronthosting.co.za> |
2015-11-10 21:53:45 | vstinner | link | issue25599 messages |
2015-11-10 21:53:45 | vstinner | create | |
|