mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-18 21:37:36 +08:00
fix #112: RecursionError when running locust
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user