Currently writing tests in asyncio is difficult because we have two separate implementations. The C implementation overrides the pure Python implementation at runtime as such testing python implementation is tricky. I propose that the pure python implementation should use the pure python versions of things like register_task and enter_task so that the it gets tested properly and it makes debugging easier. There should not really be a case where we mix both the implementations, both should be separate.
Linked PRs
Currently writing tests in asyncio is difficult because we have two separate implementations. The C implementation overrides the pure Python implementation at runtime as such testing python implementation is tricky. I propose that the pure python implementation should use the pure python versions of things like
register_taskandenter_taskso that the it gets tested properly and it makes debugging easier. There should not really be a case where we mix both the implementations, both should be separate.Linked PRs