summaryrefslogtreecommitdiff
path: root/heatclient
diff options
context:
space:
mode:
authorrabi <ramishra@redhat.com>2021-12-16 09:39:20 +0530
committerrabi <ramishra@redhat.com>2021-12-16 09:56:18 +0530
commit4753a47bbf1c31b907b21b3987dc4cc1b130990d (patch)
tree877478a1c8e69a2ef59593c5060be9830a6ab3d3 /heatclient
parent341569040dc1f4aea9b143f44e7007f2360c5215 (diff)
downloadpython-heatclient-4753a47bbf1c31b907b21b3987dc4cc1b130990d.tar.gz
Fix test and lower constraints
This fixes failures for PyYAML new version and lower constraints. Change-Id: Iba863242365c4be63495600b741513c2ca0ea9b0
Diffstat (limited to 'heatclient')
-rw-r--r--heatclient/tests/functional/osc/v1/test_readonly.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heatclient/tests/functional/osc/v1/test_readonly.py b/heatclient/tests/functional/osc/v1/test_readonly.py
index 0c88a29..88cf178 100644
--- a/heatclient/tests/functional/osc/v1/test_readonly.py
+++ b/heatclient/tests/functional/osc/v1/test_readonly.py
@@ -91,7 +91,7 @@ class SimpleReadOnlyOpenStackClientTest(base.OpenStackClientTestBase):
def test_openstack_resource_type_show(self):
rsrc_schema = self.openstack('orchestration resource type show '
'OS::Heat::RandomString')
- self.assertIsInstance(yaml.load(rsrc_schema), dict)
+ self.assertIsInstance(yaml.safe_load(rsrc_schema), dict)
def _template_validate(self, templ_name, parms):
heat_template_path = self.get_template_path(templ_name)