fix #112: RecursionError when running locust

This commit is contained in:
debugtalk
2018-09-06 08:51:47 +08:00
parent c70e4f501a
commit 05bca2276f
3 changed files with 8 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
# encoding: utf-8
try:
# monkey patch at beginning to avoid RecursionError when running locust.
from gevent import monkey; monkey.patch_all()
except ImportError:
pass
from httprunner.api import HttpRunner, LocustRunner