diff options
author | Sam Morrison <sorrison@gmail.com> | 2019-06-18 18:44:55 +1000 |
---|---|---|
committer | Sam Morrison <sorrison@gmail.com> | 2019-06-18 18:45:04 +1000 |
commit | aaff2b48bf4e5e8ea3f420b1e02b34ede368f57f (patch) | |
tree | 70303c9e48436b73fa72f1142b89961e35229372 | |
parent | 49a11dd9c7f8537e0a38f13733962533523050f1 (diff) | |
download | trove-aaff2b48bf4e5e8ea3f420b1e02b34ede368f57f.tar.gz |
Fix incorrect use of raise in template test
Change-Id: Ie397fd4f7b27a38910b329d70ada6d884118e13a
-rw-r--r-- | trove/tests/unittests/common/test_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trove/tests/unittests/common/test_template.py b/trove/tests/unittests/common/test_template.py index 2dcd3cfa..18f227bf 100644 --- a/trove/tests/unittests/common/test_template.py +++ b/trove/tests/unittests/common/test_template.py @@ -44,7 +44,7 @@ class TemplateTest(trove_testtools.TestCase): flavor_multiplier = test_flavor['ram'] // 512 found_group = self._find_in_template(contents, teststr) if not found_group: - raise "Could not find text in template" + raise Exception("Could not find text in template") # Check that the last group has been rendered memsize = found_group.split(" ")[2] self.assertEqual("%sM" % (8 * flavor_multiplier), memsize) |