aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/energy
diff options
context:
space:
mode:
Diffstat (limited to 'functest/tests/unit/energy')
-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)