change httprunner api HttpRunner location to avoid monkey patch

This commit is contained in:
debugtalk
2018-12-04 20:47:53 +08:00
parent 60422c274f
commit 0cfb92aa4a
3 changed files with 6 additions and 13 deletions

View File

@@ -90,6 +90,9 @@ def main_hrun():
def main_locust():
""" Performance test with locust: parse command line options and run commands.
"""
# monkey patch ssl at beginning to avoid RecursionError when running locust.
from gevent import monkey; monkey.patch_ssl()
import multiprocessing
import sys
from httprunner import logger