Hi Ned,

On 2016-01-11 7:39 PM, Ned Batchelder wrote:
[...]
What would you prefer?

My understanding is that "await" behaves the same, so I'm assuming the same decision would apply there.

I haven't used coverage with generator-based coroutines, but here's my understanding on how it should behave with 'async def' ones:

In coroutines world, 'await foo()' is analogous to a function call. So if the 'await' expression was executed, it doesn't matter if 'foo()' awaited on something or not (or if any 'YIELD' opcode was ever run); from the coverage standpoint, the code was covered.

Thanks,
Yury

Reply via email to