Message254464
| Author |
vstinner |
| Recipients |
gvanrossum, luhn, vstinner, yselivanov |
| Date |
2015年11月10日.21:53:45 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1447192425.94.0.68798086103.issue25599@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>>> 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... |
|
History
|
|---|
| 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 |
|