Browse Source

use yaml.safe_load to silence warning.

master
Thom Wiggers 5 years ago
parent
commit
98780c6e8e
No known key found for this signature in database GPG Key ID: 1BB0A7CE26E363
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      test/pqclean.py
  2. +1
    -1
      test/test_duplicate_consistency.py

+ 1
- 1
test/pqclean.py View File

@@ -55,7 +55,7 @@ class Scheme:
metafile = os.path.join(self.path(), 'META.yml')
try:
with open(metafile, encoding='utf-8') as f:
metadata = yaml.load(f.read())
metadata = yaml.safe_load(f.read())
return metadata
except Exception as e:
print("Can't open {}: {}".format(metafile, e))


+ 1
- 1
test/test_duplicate_consistency.py View File

@@ -16,7 +16,7 @@ def test_duplicate_consistency():
if os.path.isfile(os.path.join('duplicate_consistency', '{}_{}.yml'.format(scheme.name, implementation.name))):
metafile = os.path.join('duplicate_consistency', '{}_{}.yml'.format(implementation.scheme.name, implementation.name))
with open(metafile, encoding='utf-8') as f:
metadata = yaml.load(f.read())
metadata = yaml.safe_load(f.read())
for group in metadata['consistency_checks']:
source = pqclean.Implementation.by_name(group['source']['scheme'], group['source']['implementation'])
for file in group['files']:


Loading…
Cancel
Save