Skip to content

Commit

Permalink
Use yaml.safe_load(…) instead of yaml.load(…, yaml.SafeLoader)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Morgenstern <martin.morgenstern@cloudandheat.com>
  • Loading branch information
martinmo authored and cah-hbaum committed Apr 30, 2024
1 parent 04693ed commit 976a078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/kaas/k8s-node-distribution/check_nodes_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

def load_testdata(filename):
with open(Path(HERE, "testdata", filename)) as stream:
return yaml.load(stream, yaml.SafeLoader)
return yaml.safe_load(stream)


@pytest.mark.parametrize("yaml_file", ["test-success-1.yaml", "test-success-2.yaml"])
Expand Down

0 comments on commit 976a078

Please sign in to comment.