mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-03 14:59:38 +08:00
bugfix: make compatible with python 2.7/3.3/3.4
This commit is contained in:
@@ -19,6 +19,10 @@
|
|||||||
$ pip install -r requirements.txt
|
$ pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Supported Python Versions
|
||||||
|
|
||||||
|
Python 2.7, 3.3, 3.4, 3.5, and 3.6.
|
||||||
|
|
||||||
## 阅读更多
|
## 阅读更多
|
||||||
|
|
||||||
- [《背景介绍》](docs/background.md)
|
- [《背景介绍》](docs/background.md)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ def load_testcases(testcase_file_path):
|
|||||||
def parse_response_object(resp_obj):
|
def parse_response_object(resp_obj):
|
||||||
try:
|
try:
|
||||||
resp_content = resp_obj.json()
|
resp_content = resp_obj.json()
|
||||||
except json.decoder.JSONDecodeError:
|
except ValueError:
|
||||||
resp_content = resp_obj.text
|
resp_content = resp_obj.text
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user