Commit 74a73842 authored by Michał Kępień's avatar Michał Kępień Committed by Mark Andrews
Browse files

Silence PyYAML warning

Make yaml.load_all() use yaml.SafeLoader to address a warning currently
emitted when bin/tests/system/dnstap/ is run: YAMLLoadWarning: calling yaml.load_all() without Loader=... is deprecated, as the default Loader is unsafe. Please read for full details.
      for l in yaml.load_all(f.stdout):

(cherry picked from commit 62f631f7)
parent 66c93907
Pipeline #45599 passed with stages
in 34 minutes and 54 seconds
......@@ -25,5 +25,5 @@ DATAFILE = sys.argv[2]
with subprocess.Popen(ARGS, stdout=subprocess.PIPE) as f:
for y in yaml.load_all(f.stdout):
for y in yaml.load_all(f.stdout, Loader=yaml.SafeLoader):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment