Use the CSafeLoader YAML loader to catch issues with complex objects

sru-regression-messages
Mathieu Trudel-Lapierre 7 years ago
parent b16530a37d
commit 88b4d023ad

@ -90,7 +90,7 @@ class YamlTest(TestBase):
# convert excuses to source indexed dict
excuses_dict = {}
for s in yaml.load(excuses_yaml)['sources']:
for s in yaml.load(excuses_yaml, Loader=yaml.CSafeLoader)['sources']:
excuses_dict[s['source']] = s
if 'SHOW_EXCUSES' in os.environ:

Loading…
Cancel
Save