diff options
Diffstat (limited to 'heat/tests/test_properties.py')
-rw-r--r-- | heat/tests/test_properties.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/heat/tests/test_properties.py b/heat/tests/test_properties.py index 97f8a8027..8e780f73e 100644 --- a/heat/tests/test_properties.py +++ b/heat/tests/test_properties.py @@ -783,12 +783,12 @@ class PropertyTest(common.HeatTestCase): def test_int_bad(self): schema = {'Type': 'Integer'} p = properties.Property(schema) - # python 3.4.3 returns another error message + # python 3.4.3 and python3.10 return slightly different error messages # try to handle this by regexp self.assertRaisesRegex( TypeError, r"int\(\) argument must be a string" "(, a bytes-like object)?" - " or a number, not 'list'", p.get_value, [1]) + " or a (real )?number, not 'list'", p.get_value, [1]) def test_str_from_int(self): schema = {'Type': 'String'} |