# HG changeset patch # User Ludovic Chabant # Date 1569940395 25200 # Node ID cf6b2bf042fb6058f06971907bc18ea2f4e5f9b9 # Parent 6baa94da8b16626e440274b898c2f0cc324db5c0 tests: Fix YAML warning in tests. diff -r 6baa94da8b16 -r cf6b2bf042fb tests/conftest.py --- a/tests/conftest.py Wed Jun 12 09:42:50 2019 -0700 +++ b/tests/conftest.py Tue Oct 01 07:33:15 2019 -0700 @@ -82,7 +82,8 @@ class YamlTestFileBase(pytest.File): def collect(self): - spec = yaml.load_all(self.fspath.open(encoding='utf8')) + spec = yaml.load_all(self.fspath.open(encoding='utf8'), + Loader=yaml.SafeLoader) for i, item in enumerate(spec): name = '%s_%d' % (self.fspath.basename, i) if 'test_name' in item: