Browse Source

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

devuan-deployment
Paul Gevers 1 year ago
parent
commit
747c67854a
No known key found for this signature in database GPG Key ID: 9C5C99EB05BD750A
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/test_autopkgtest.py

+ 1
- 1
tests/test_autopkgtest.py 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:


Loading…
Cancel
Save