Skip to content

Commit

Permalink
TST: use yaml.safe_load
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Wagner committed May 6, 2019
1 parent 3a36838 commit 53478ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -24,6 +24,7 @@ CHANGELOG
### Packaging

### Tests
- `test_conf`: For yaml use `safe_load` instead of unsafe `load`.

### Tools

Expand Down
2 changes: 1 addition & 1 deletion intelmq/tests/test_conf.py
Expand Up @@ -151,7 +151,7 @@ def test_feeds(self):
schema = json.load(handle)
with open(pkg_resources.resource_filename('intelmq',
'etc/feeds.yaml')) as handle:
feeds = yaml.load(handle)
feeds = yaml.safe_load(handle)

v = cerberus.Validator(schema)

Expand Down

0 comments on commit 53478ee

Please sign in to comment.