mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +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
|
||||
```
|
||||
|
||||
## Supported Python Versions
|
||||
|
||||
Python 2.7, 3.3, 3.4, 3.5, and 3.6.
|
||||
|
||||
## 阅读更多
|
||||
|
||||
- [《背景介绍》](docs/background.md)
|
||||
|
||||
@@ -24,7 +24,7 @@ def load_testcases(testcase_file_path):
|
||||
def parse_response_object(resp_obj):
|
||||
try:
|
||||
resp_content = resp_obj.json()
|
||||
except json.decoder.JSONDecodeError:
|
||||
except ValueError:
|
||||
resp_content = resp_obj.text
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user