From b43792ccd8ec6eb634e3bc1dce8097523926b0d0 Mon Sep 17 00:00:00 2001 From: Vincent DEFERT <20.100@defert.com> Date: Mon, 29 May 2023 09:30:44 +0200 Subject: [PATCH] Added Loader argument to yaml.load --- tests/test_fuzzing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_fuzzing.py b/tests/test_fuzzing.py index 5482f7d..6701f03 100644 --- a/tests/test_fuzzing.py +++ b/tests/test_fuzzing.py @@ -99,7 +99,7 @@ class TestProgramFuzzed(unittest.TestCase): def single_fuzz(self, yml, serial_mock, fuzzer, read_mock, err, out, sleep_mock, write_mock): """Test a single programming cycle with fuzzing""" with open(yml) as test_file: - test_data = yaml.load(test_file.read()) + test_data = yaml.load(test_file.read(), Loader=yaml.SafeLoader) for _ in range(1000): with self.subTest(): opts = get_default_opts()