mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 08:59:44 +08:00
fix #112: RecursionError when running locust
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
__title__ = 'HttpRunner'
|
||||
__description__ = 'One-stop solution for HTTP(S) testing.'
|
||||
__url__ = 'https://github.com/HttpRunner/HttpRunner'
|
||||
__version__ = '1.5.13'
|
||||
__version__ = '1.5.14'
|
||||
__author__ = 'debugtalk'
|
||||
__author_email__ = 'mail@debugtalk.com'
|
||||
__license__ = 'MIT'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
- config:
|
||||
name: basic test with httpbin
|
||||
request:
|
||||
base_url: http://httpbin.org/
|
||||
base_url: https://httpbin.org/
|
||||
|
||||
- test:
|
||||
name: index
|
||||
@@ -98,6 +98,3 @@
|
||||
- len_eq: ["content", 9]
|
||||
- len_eq: ["json", 9]
|
||||
- len_eq: ["text", 9]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user