Use the CSafeLoader YAML loader to catch issues with complex objects

This commit is contained in:
Mathieu Trudel-Lapierre 2018-03-08 13:30:00 +01:00
parent b16530a37d
commit 88b4d023ad

View File

@ -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: