Skip to content

Commit

Permalink
testsuite/polyfill: use yaml.safe_load instead of yaml.load
Browse files Browse the repository at this point in the history
For GitHub issue AdaCore/langkit#191
  • Loading branch information
pmderodat committed Jun 10, 2019
1 parent 5e159a0 commit 9bf4de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ada/testsuite/testsuite_support/polyfill.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def _run_testcase(self, test_dir):
# 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)
Expand Down

0 comments on commit 9bf4de4

Please sign in to comment.