diff options
-rw-r--r-- | doc/status.rst | 1 | ||||
-rw-r--r-- | run_aiotest.py | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/status.rst b/doc/status.rst index 8b1bf6a..5c4302a 100644 --- a/doc/status.rst +++ b/doc/status.rst @@ -1,6 +1,7 @@ To do ===== +* support monkey-patching enabled after loading the aioeventlet module * register signals in eventlet hub, only needed for pyevent hub? * port greenio examples to aioeventlet * write unit tests for, and maybe also examples for: diff --git a/run_aiotest.py b/run_aiotest.py index 2b3ce09..b312bb2 100644 --- a/run_aiotest.py +++ b/run_aiotest.py @@ -1,8 +1,14 @@ +#import eventlet; eventlet.monkey_patch() + import aioeventlet import aiotest.run import eventlet config = aiotest.TestConfig() -config.new_event_pool_policy = aioeventlet.EventLoopPolicy +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) |