mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
fix: YAMLLoadWarning by specify yaml loader
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
- fix extend with testcase reference in format version 2
|
- fix extend with testcase reference in format version 2
|
||||||
- fix ImportError when locustio is not installed
|
- fix ImportError when locustio is not installed
|
||||||
|
- fix YAMLLoadWarning by specify yaml loader
|
||||||
|
|
||||||
## 2.2.0 (2019-06-24)
|
## 2.2.0 (2019-06-24)
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ def load_yaml_file(yaml_file):
|
|||||||
""" load yaml file and check file content format
|
""" load yaml file and check file content format
|
||||||
"""
|
"""
|
||||||
with io.open(yaml_file, 'r', encoding='utf-8') as stream:
|
with io.open(yaml_file, 'r', encoding='utf-8') as stream:
|
||||||
yaml_content = yaml.load(stream)
|
yaml_content = yaml.load(stream, Loader=yaml.FullLoader)
|
||||||
_check_format(yaml_file, yaml_content)
|
_check_format(yaml_file, yaml_content)
|
||||||
return yaml_content
|
return yaml_content
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user