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 #191
  • Loading branch information
pmderodat committed Jun 10, 2019
1 parent fc8bb32 commit a62a774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/testsuite_support/polyfill.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,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 a62a774

Please sign in to comment.