title: Why does asyncio.iscoroutine returns True on a generator?
body: <p>Please consider the following function:</p>
  
  <pre><code>def test(): yield 1
  </code></pre>
  
  <p>The <code>asyncio.iscoroutine()</code> method will return <code>True</code> for the method <code>test()</code>. Another thing to notice is that <code>inspect.iscoroutine()</code> will return <code>False</code>. </p>
  
  <p>Any reason why <code>asyncio</code> thinks it's a coroutine ? In any case, it seems that one of them got it wrong. </p>