Yury Selivanov <yseliva...@gmail.com> added the comment:

I think the right approach would be to add an new base TestCase class: 
AsyncioTestCase.  There other frameworks that have different event loop 
implementations, so we can't assume that an `async def` test should always be 
executed by asyncio.

And you should use the `asyncio.run` function to run the coroutine.


Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to