aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/energy/test_functest_energy.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-12-12 13:59:30 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-12 13:59:30 +0000
commit250a7936cc34e2e22c7a9a8f766c9ee0bdcb9f4c (patch)
treefc67c0232f04661a6cc037f44cc4c1b14720e8e4 /functest/tests/unit/energy/test_functest_energy.py
parenta6a900f1032ef0c65996a71812b62811e46b840d (diff)
parent55733974628202786705227b7d6e9bb50558823d (diff)
Merge "Add python3 support in energy"
Diffstat (limited to 'functest/tests/unit/energy/test_functest_energy.py')
-rw-r--r--functest/tests/unit/energy/test_functest_energy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/tests/unit/energy/test_functest_energy.py b/functest/tests/unit/energy/test_functest_energy.py
index 99110802..9e19a33d 100644
--- a/functest/tests/unit/energy/test_functest_energy.py
+++ b/functest/tests/unit/energy/test_functest_energy.py
@@ -266,7 +266,7 @@ class EnergyRecorderTest(unittest.TestCase):
with self.assertRaises(Exception) as context:
self.__decorated_method_with_ex()
self.assertTrue(
- self.exception_message_to_preserve in context.exception
+ self.exception_message_to_preserve in str(context.exception)
)
self.assertTrue(finish_mock.called)