[Trivial] Use yaml.safe_load() in the test suite.
There is no need to instantiate Python objects from the YAML configuration, so use the simpler interface and also avoid a warning message. Change-Id: I0cab01a1c37d03d8ecf791bf62b823565e228177
This commit is contained in:
parent
4bf052084e
commit
c41ba105b3
@ -73,7 +73,7 @@ class BaseFunctTestCase(unittest2.TestCase):
|
||||
cls.tests_config = cinder_to_yaml.convert(cls.CONFIG_FILE)
|
||||
else:
|
||||
with open(cls.CONFIG_FILE, 'r') as f:
|
||||
cls.tests_config = yaml.load(f)
|
||||
cls.tests_config = yaml.safe_load(f)
|
||||
cls.tests_config.setdefault('logs', cls.LOGGING_ENABLED)
|
||||
cls.tests_config.setdefault('size_precision', cls.PRECISION)
|
||||
return cls.tests_config
|
||||
|
Loading…
Reference in New Issue
Block a user