summaryrefslogtreecommitdiff
path: root/run_aiotest.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_aiotest.py')
-rw-r--r--run_aiotest.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/run_aiotest.py b/run_aiotest.py
index b312bb2..76cc47a 100644
--- a/run_aiotest.py
+++ b/run_aiotest.py
@@ -1,8 +1,13 @@
-#import eventlet; eventlet.monkey_patch()
+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
-import eventlet
config = aiotest.TestConfig()
config.asyncio = aioeventlet.asyncio