From 747c67854a9227d9e30a2326714856df382b876a Mon Sep 17 00:00:00 2001 From: Paul Gevers Date: Sun, 25 Aug 2019 20:47:14 +0200 Subject: [PATCH] tests: use yaml.safe_load as yaml.load is deprecated --- tests/test_autopkgtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_autopkgtest.py b/tests/test_autopkgtest.py index 5aaf8cd..b81f2ca 100644 --- a/tests/test_autopkgtest.py +++ b/tests/test_autopkgtest.py @@ -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: