homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author luhn
Recipients gvanrossum, luhn, vstinner, yselivanov
Date 2015年11月10日.17:26:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447176382.09.0.498269327302.issue25599@psf.upfronthosting.co.za>
In-reply-to
Content
>>> asyncio.iscoroutinefunction(unittest.mock.Mock())
<Mock name='mock._is_coroutine' id='4544068072'>
This is an unexpected response, both in type (Mock rather than boolean) and value (truthy).
inspect.iscoroutinefunction behaves as expected.
Workaround:
>>> m = unittest.mock.Mock()
>>> m._is_coroutine = False
>>> asyncio.iscoroutinefunction(m)
False
History
Date User Action Args
2015年11月10日 17:26:22luhnsetrecipients: + luhn, gvanrossum, vstinner, yselivanov
2015年11月10日 17:26:22luhnsetmessageid: <1447176382.09.0.498269327302.issue25599@psf.upfronthosting.co.za>
2015年11月10日 17:26:22luhnlinkissue25599 messages
2015年11月10日 17:26:21luhncreate

AltStyle によって変換されたページ (->オリジナル) /