684f3be000
In debug mode, BaseEventLoop._run_once() now sets the BaseEventLoop._current_handle attribute to the handle currently executed. In release mode or when no handle is executed, the attribute is None. BaseEventLoop.default_exception_handler() displays the traceback of the current handle if available.
15 lines
373 B
Python
15 lines
373 B
Python
import aiotest.run
|
|
import asyncio
|
|
import sys
|
|
if sys.platform == 'win32':
|
|
from asyncio.windows_utils import socketpair
|
|
else:
|
|
from socket import socketpair
|
|
|
|
config = aiotest.TestConfig()
|
|
config.asyncio = asyncio
|
|
config.socketpair = socketpair
|
|
config.new_event_pool_policy = asyncio.DefaultEventLoopPolicy
|
|
config.call_soon_check_closed = True
|
|
aiotest.run.main(config)
|