tests: devtest: Fix YAML dumper

This was using a baseloader for dumping. It is modified to use a safe
dumper.
This commit is contained in:
Martin Braun 2026-05-26 17:24:50 +02:00 committed by Martin Braun
parent f0cc0b46c9
commit 9fb2a5dfc2

View File

@ -31,7 +31,7 @@ try:
def yaml_dump(data, stream): def yaml_dump(data, stream):
"""Dumps data to a file.""" """Dumps data to a file."""
yaml = YAML(typ="base", pure=True) yaml = YAML(typ="safe", pure=True)
yaml.default_flow_style = False yaml.default_flow_style = False
yaml.dump(data, stream) yaml.dump(data, stream)