From b6e04ab98235cf48fa0053115b8dc22a5f23fbb4 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Tue, 21 Jan 2020 16:19:43 +0200 Subject: [PATCH] Fix YAML warning --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 0d0c353..cc74138 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -35,7 +35,7 @@ def trains_agentyaml(tmpdir): def _method(template_file): file = tmpdir.join("trains_agent.yaml") with (PROJECT_ROOT / "tests/templates" / template_file).open() as f: - code = yaml.load(f) + code = yaml.load(f, Loader=yaml.SafeLoader) yield Namespace(code=code, file=file.strpath) file.write(yaml.dump(code)) return _method