fix PyYAML warnings in unit tests

This commit is contained in:
AlanCoding
2019-04-12 15:48:08 -04:00
parent 235011f5e9
commit 2c67bec3cb
3 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class TestParserExceptions:
@staticmethod
def yaml_error(data):
try:
yaml.load(data)
yaml.safe_load(data)
return None
except Exception as e:
return str(e)