Currently the IsolatedAsyncioTestCase is an async version of unittest.TestCase but:
- it’s coupled to asyncio and I’d like a stdlib TestCase class that works for twisted and trio
- It doesn’t support structured concurrency context managers (yield-safe)
- It starts and stops the asyncio event loop rather than just using asyncio.run which means sometimes async generator finalization doesn’t work correctly
If a new one were designed to work like AsyncExitStack both of my problems with it could be fixed at the same time