diff options
author | 2017-12-12 05:36:53 +0100 | |
---|---|---|
committer | 2017-12-12 05:48:09 +0100 | |
commit | 55733974628202786705227b7d6e9bb50558823d (patch) | |
tree | c5c097b8c00c0f1577f0c35eccf250fdf14c47ec /functest/tests/unit/energy/test_functest_energy.py | |
parent | 9a74aa7683d34e6954eb5d0bd54253935c975c59 (diff) |
Add python3 support in energy
It also converts Exception to str when expected.
All energy modules are also listed in files rated 10/10 by pylint.
Change-Id: Id382d60eb35f50c98b15423f9559a920ce5dac62
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/tests/unit/energy/test_functest_energy.py')
-rw-r--r-- | functest/tests/unit/energy/test_functest_energy.py | 2 |
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) |