You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ada/langkit/files/langkit-2019-pyyaml.patch

12 lines
558 B

--- a/testsuite/testsuite_support/polyfill.py 2020-03-26 20:43:40.861154768 +0100
+++ b/testsuite/testsuite_support/polyfill.py 2020-03-26 20:44:07.874675123 +0100
@@ -376,7 +376,7 @@
# First load data provided by this testcase
try:
with open(os.path.join(test_dir, 'test.yaml'), 'r') as f:
- test_data = yaml.load(f)
+ test_data = yaml.safe_load(f)
except (IOError, yaml.error.YAMLError) as exc:
status = 'PROBLEM'
message = 'Invalid test.yaml: {}'.format(exc)