18 from typing
import Callable
23 __all__ =
'AioTestBase'
25 _COROUTINE_FUNCTION_ALLOWLIST = [
'setUp',
'tearDown']
32 return loop.run_until_complete(f(*args, **kwargs))
39 loop = asyncio.get_event_loop()
41 loop = asyncio.new_event_loop()
42 asyncio.set_event_loop(loop)
59 """Overrides the loading logic to support coroutine functions."""
63 if name.startswith(
'test_')
or name
in _COROUTINE_FUNCTION_ALLOWLIST:
64 if asyncio.iscoroutinefunction(attr):