blob: 76cc47a345f21bc4b1ea86ba02d08971112af99b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import eventlet
import sys
if '-m' in sys.argv:
print("Enable eventlet monkey patching")
eventlet.monkey_patch()
sys.argv.remove('-m')
import aioeventlet
import aiotest.run
config = aiotest.TestConfig()
config.asyncio = aioeventlet.asyncio
config.socket = eventlet.patcher.original('socket')
config.threading = eventlet.patcher.original('threading')
config.sleep = eventlet.sleep
config.socketpair = aioeventlet.socketpair
config.new_event_pool_policy = aioeventlet.EventLoopPolicy
aiotest.run.main(config)
|