| commit | b55431706ed483ff750f203e100c5079e96be412 | [log] [tgz] |
|---|---|---|
| author | Adam Israel <adam.israel@canonical.com> | Tue Nov 26 09:20:41 2019 -0500 |
| committer | Adam Israel <adam.israel@canonical.com> | Tue Nov 26 09:20:41 2019 -0500 |
| tree | 9a74417ab5f5c222cb98d47d1b5677eadcc75274 | |
| parent | 0d648c93b6f03dc221a9e34bfa021003e17f1992 [diff] [blame] |
Update to use safe_load The use of a bare yaml.load with no Loader is deprecated. Use the sugar shortcut safe_load per https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation Change-Id: I856d4263fcf20453157f9d3835289e665d1664bf Signed-off-by: Adam Israel <adam.israel@canonical.com>
diff --git a/tests/base.py b/tests/base.py index c7dad6d..aabf359 100644 --- a/tests/base.py +++ b/tests/base.py
@@ -108,7 +108,7 @@ def get_descriptor(descriptor): desc = None try: - tmp = yaml.load(descriptor) + tmp = yaml.safe_load(descriptor) # Remove the envelope root = list(tmp.keys())[0]