From 47e99ffca5e2d9035dcfcbbce0fb77a0843993a6 Mon Sep 17 00:00:00 2001 From: Hideki Saito Date: Thu, 21 Oct 2021 00:41:57 +0900 Subject: [PATCH] Replace yaml.load() to yaml.safe_load() Signed-off-by: Hideki Saito --- tests/unit/plugins/action/test_synchronize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/plugins/action/test_synchronize.py b/tests/unit/plugins/action/test_synchronize.py index 05e8227..a98b026 100644 --- a/tests/unit/plugins/action/test_synchronize.py +++ b/tests/unit/plugins/action/test_synchronize.py @@ -125,7 +125,7 @@ class SynchronizeTester(object): metapath = os.path.join(fixturepath, 'meta.yaml') with open(metapath, 'rb') as f: fdata = f.read() - test_meta = yaml.load(fdata) + test_meta = yaml.safe_load(fdata) # load initial play context vars if '_play_context' in test_meta: