tests: use yaml.safe_load as yaml.load is deprecated

This commit is contained in:
Paul Gevers 2019-08-25 20:47:14 +02:00
parent 2fc265be91
commit 747c67854a
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

View File

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