Skip to content

Commit 66a0e40

Browse files
committed
Use yaml.safe_load() in tests
yaml.load() is deprecated. And unsafe.
1 parent e2151b2 commit 66a0e40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_simulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,8 @@ def test_sim_json_result(config):
456456

457457

458458
@pytest.mark.parametrize('ext, parser', [
459-
('yaml', yaml.load),
460-
('yml', yaml.load),
459+
('yaml', yaml.safe_load),
460+
('yml', yaml.safe_load),
461461
('json', json.load),
462462
('py', lambda f: eval(f.read())),
463463
])

0 commit comments

Comments
 (0)